summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/netlist/plib/pfmtlog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.h')
-rw-r--r--src/lib/netlist/plib/pfmtlog.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h
index 9f3ff382583..a7485f8bfe6 100644
--- a/src/lib/netlist/plib/pfmtlog.h
+++ b/src/lib/netlist/plib/pfmtlog.h
@@ -184,6 +184,17 @@ namespace plib {
};
template<>
+ struct ptype_traits<const char32_t *> : ptype_traits_base<const char32_t *>
+ {
+ static char32_t fmt_spec() { return 's'; }
+ static inline void streamify(std::ostream &s, const char32_t *v)
+ {
+ const putf32string su32(v);
+ s << putf8string(su32).c_str();
+ }
+ };
+
+ template<>
struct ptype_traits<std::string> : ptype_traits_base<std::string>
{
static char32_t fmt_spec() { return 's'; }