fix my stupidity (opposite way stream ops)
This commit is contained in:
parent
d77de45c84
commit
f2f9e9211c
1 changed files with 4 additions and 4 deletions
|
@ -138,14 +138,14 @@ inline void toLower(std::string &str) {
|
||||||
std::string val = checkAndRemove(line, namePascalCased);\
|
std::string val = checkAndRemove(line, namePascalCased);\
|
||||||
std::stringstream ss(val);\
|
std::stringstream ss(val);\
|
||||||
enum_type value;\
|
enum_type value;\
|
||||||
value << ss;\
|
ss >> value;\
|
||||||
)
|
)
|
||||||
#define VAR_ENUM_D(section, name, enum_type, default) \
|
#define VAR_ENUM_D(section, name, enum_type, default) \
|
||||||
VAR_GENERIC_D(section, name, enum_type::default,\
|
VAR_GENERIC_D(section, name, enum_type::default,\
|
||||||
std::string val = checkAndRemove(line, namePascalCased);\
|
std::string val = checkAndRemove(line, namePascalCased);\
|
||||||
std::stringstream ss(val);\
|
std::stringstream ss(val);\
|
||||||
enum_type value;\
|
enum_type value;\
|
||||||
value << ss;\
|
ss >> value;\
|
||||||
)
|
)
|
||||||
|
|
||||||
#define STRUCT_STREAM_OPS(name, ...)
|
#define STRUCT_STREAM_OPS(name, ...)
|
||||||
|
@ -156,14 +156,14 @@ inline void toLower(std::string &str) {
|
||||||
std::string val = checkAndRemove(line, namePascalCased);\
|
std::string val = checkAndRemove(line, namePascalCased);\
|
||||||
std::stringstream ss(val);\
|
std::stringstream ss(val);\
|
||||||
struct_type value;\
|
struct_type value;\
|
||||||
value << ss;\
|
ss >> value;\
|
||||||
)
|
)
|
||||||
#define VAR_STRUCT_D(section, name, struct_type, default) \
|
#define VAR_STRUCT_D(section, name, struct_type, default) \
|
||||||
VAR_GENERIC_D(section, name, default,\
|
VAR_GENERIC_D(section, name, default,\
|
||||||
std::string val = checkAndRemove(line, namePascalCased);\
|
std::string val = checkAndRemove(line, namePascalCased);\
|
||||||
std::stringstream ss(val);\
|
std::stringstream ss(val);\
|
||||||
struct_type value;\
|
struct_type value;\
|
||||||
value << ss;\
|
ss >> value;\
|
||||||
)
|
)
|
||||||
|
|
||||||
#define VAR_LIST(section, name, type) \
|
#define VAR_LIST(section, name, type) \
|
||||||
|
|
Loading…
Reference in a new issue