We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9091dbd commit c8502f4Copy full SHA for c8502f4
include/reflection-cpp/reflection.hpp
@@ -446,7 +446,9 @@ std::string Inspect(Object const& object)
446
}
447
else
448
{
449
+ str += '{';
450
str += Inspect(arg);
451
+ str += '}';
452
453
};
454
if (!str.empty())
@@ -472,3 +474,12 @@ std::string Inspect(std::vector<Object> const& objects)
472
474
return str;
473
475
476
} // namespace Reflection
477
+
478
+template <std::size_t N>
479
+struct std::formatter<Reflection::StringLiteral<N>>: std::formatter<std::string_view>
480
+{
481
+ auto format(Reflection::StringLiteral<N> const& value, auto& ctx) const
482
+ {
483
+ return formatter<std::string_view>::format(value.sv(), ctx);
484
+ }
485
+};
0 commit comments