mirror of
https://github.com/TomHarte/CLK.git
synced 2024-12-25 03:32:01 +00:00
Switch to more compact form of output for bool.
This also will hopefully deal with GCC's slightly confused claim that 'value' may be used without having been initialised down at #define OutputIntC (i.e. after it's out of scope, but I can sort of see why GCC might get confused while it remains in scope).
This commit is contained in:
parent
d3fbdba77c
commit
cb1970ebab
@ -144,9 +144,7 @@ std::string Reflection::Struct::description() const {
|
||||
|
||||
// Output Bools as yes/no.
|
||||
if(*type == typeid(bool)) {
|
||||
bool value;
|
||||
::Reflection::get(*this, key, value);
|
||||
stream << (value ? "true" : "false");
|
||||
stream << ::Reflection::get<bool>(*this, key);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user