stl: std::boolalpha

This commit is contained in:
skypjack
2026-04-24 09:08:28 +02:00
parent dda9428140
commit 682184ba08
2 changed files with 3 additions and 1 deletions

View File

@@ -6,6 +6,8 @@
/*! @cond ENTT_INTERNAL */
namespace entt::stl {
using std::boolalpha;
} // namespace entt::stl
/*! @endcond */

View File

@@ -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>());