stl: std::stringstream

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

View File

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

View File

@@ -60,7 +60,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{};
stl::stringstream buffer{};
buffer << stl::boolalpha << elem.template cast<bool>();
ImGui::Text("%s: %s", label, buffer.str().data());
} else if(type.info() == type_id<char>()) {