git.stg.codes
/
stg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed ServerInfo parser.
[stg.git]
/
projects
/
sgconf
/
utils.h
diff --git
a/projects/sgconf/utils.h
b/projects/sgconf/utils.h
index 2e16b625ab91927942e21070614fe4aa088811d6..3793c9cd4f2415dd215cc26fce2dd3b4cf01efcf 100644
(file)
--- a/
projects/sgconf/utils.h
+++ b/
projects/sgconf/utils.h
@@
-25,7
+25,7
@@
res = value;
template <typename T, typename F>
inline
template <typename T, typename F>
inline
-void MaybeSet(const std::map<std::string, std::string> & options, const std::string & name,
RESETABLE<T>
& res, F conv)
+void MaybeSet(const std::map<std::string, std::string> & options, const std::string & name,
T
& res, F conv)
{
std::map<std::string, std::string>::const_iterator it(options.find(name));
if (it == options.end())
{
std::map<std::string, std::string>::const_iterator it(options.find(name));
if (it == options.end())