1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 18:30:21 +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:
Thomas Harte 2020-04-12 14:40:32 -04:00
parent d3fbdba77c
commit cb1970ebab

View File

@ -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;
}