mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-12 15:31:09 +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.
|
// Output Bools as yes/no.
|
||||||
if(*type == typeid(bool)) {
|
if(*type == typeid(bool)) {
|
||||||
bool value;
|
stream << ::Reflection::get<bool>(*this, key);
|
||||||
::Reflection::get(*this, key, value);
|
|
||||||
stream << (value ? "true" : "false");
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user