-#ifndef __STG_SGCONF_UTILS_H__
-#define __STG_SGCONF_UTILS_H__
+#pragma once
#include "stg/common.h"
-#include "stg/resetable.h"
+#include "stg/optional.h"
#include <string>
#include <map>
template <typename T>
inline
-void MaybeSet(const std::map<std::string, std::string> & options, const std::string & name, RESETABLE<T> & res)
+void MaybeSet(const std::map<std::string, std::string> & options, const std::string & name, STG::Optional<T> & res)
{
std::map<std::string, std::string>::const_iterator it(options.find(name));
if (it == options.end())
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())
template <>
inline
-void MaybeSet<std::string>(const std::map<std::string, std::string> & options, const std::string & name, RESETABLE<std::string> & res)
+void MaybeSet<std::string>(const std::map<std::string, std::string> & options, const std::string & name, STG::Optional<std::string> & res)
{
std::map<std::string, std::string>::const_iterator it(options.find(name));
if (it == options.end())
}
} // namespace SGCONF
-
-#endif