Roman Perepelitsa wrote:Is is possible to have the number be generated automatically so that it doesn't need to be defined by the user?
template<typename S, int N>
struct ParameterValue
{
ParameterValue(S value_) : value(value_) {}
S value
};
typedef ParameterValue<std::string, 0> ConfigName;
typedef ParameterValue<std::string, 1> PathName;
Roman Perepelitsa.