stl: std::boolalpha
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
/*! @cond ENTT_INTERNAL */
|
||||
namespace entt::stl {
|
||||
|
||||
using std::boolalpha;
|
||||
|
||||
} // namespace entt::stl
|
||||
/*! @endcond */
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ static void present_element(const meta_any &obj, OnEntity on_entity) {
|
||||
} else if(type.is_arithmetic()) {
|
||||
if(type.info() == type_id<bool>()) {
|
||||
std::stringstream buffer{};
|
||||
buffer << std::boolalpha << elem.template cast<bool>();
|
||||
buffer << stl::boolalpha << elem.template cast<bool>();
|
||||
ImGui::Text("%s: %s", label, buffer.str().data());
|
||||
} else if(type.info() == type_id<char>()) {
|
||||
ImGui::Text("%s: %c", label, elem.template cast<char>());
|
||||
|
||||
Reference in New Issue
Block a user