Drop constexpr from compiled-out debug settings

* This works for everything but rdcstr unfortunately
This commit is contained in:
baldurk
2020-05-20 12:21:57 +01:00
parent 571b286eb3
commit 262e1f2627
+1 -1
View File
@@ -66,7 +66,7 @@ CONFIG_SUPPORT_TYPE(rdcarray<rdcstr>);
#define RDOC_DEBUG_CONFIG(type, name, defaultValue, description) \
static ConfigVarRegistration<type> CONCAT(config, __LINE__)( \
STRING_LITERAL(STRINGIZE(name)), defaultValue, true, STRING_LITERAL(description)); \
static constexpr type name() { return defaultValue; }
static const type name() { return defaultValue; }
#else
#define RDOC_DEBUG_CONFIG(type, name, defaultValue, description) \