diff options
author | 2020-09-24 07:53:11 +0200 | |
---|---|---|
committer | 2020-09-24 15:22:22 +0200 | |
commit | 1bb99466bcfa188bca00855f80bd6098b0882419 (patch) | |
tree | 57b4b8d68d6efdeb18d424e4ef4a353a011d6fe8 /src/lib/netlist/plib/pfmtlog.h | |
parent | 2fb9f38b83270cac34428738313cd2eee79f421e (diff) |
netlist: code refactoring
* use default move and copy constructors
* various minor edits like adding noexcept
* removed a lot of inline keywords - you can't beat the compiler
Diffstat (limited to 'src/lib/netlist/plib/pfmtlog.h')
-rw-r--r-- | src/lib/netlist/plib/pfmtlog.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/netlist/plib/pfmtlog.h b/src/lib/netlist/plib/pfmtlog.h index 45f7d3e4fc1..ae8998b9dee 100644 --- a/src/lib/netlist/plib/pfmtlog.h +++ b/src/lib/netlist/plib/pfmtlog.h @@ -40,7 +40,7 @@ namespace plib { { static constexpr const bool is_signed = std::numeric_limits<T>::is_signed; static char32_t fmt_spec() { return 'u'; } - static inline void streamify(std::ostream &s, const T &v) + static void streamify(std::ostream &s, const T &v) { s << v; } @@ -53,7 +53,7 @@ namespace plib { // FIXME: need native support at some time static constexpr const bool is_signed = true; static char32_t fmt_spec() { return 'f'; } - static inline void streamify(std::ostream &s, const FLOAT128 &v) + static void streamify(std::ostream &s, const FLOAT128 &v) { s << narrow_cast<long double>(v); } @@ -176,7 +176,7 @@ namespace plib { struct ptype_traits<const char16_t *> : ptype_traits_base<const char16_t *> { static char32_t fmt_spec() { return 's'; } - static inline void streamify(std::ostream &s, const char16_t *v) + static void streamify(std::ostream &s, const char16_t *v) { const putf16string su16(v); s << putf8string(su16).c_str(); @@ -187,7 +187,7 @@ namespace plib { 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) + static void streamify(std::ostream &s, const char32_t *v) { const putf32string su32(v); s << putf8string(su32).c_str(); @@ -210,7 +210,7 @@ namespace plib { struct ptype_traits<putf16string> : ptype_traits_base<putf16string> { static char32_t fmt_spec() { return 's'; } - static inline void streamify(std::ostream &s, const putf16string &v) + static void streamify(std::ostream &s, const putf16string &v) { s << putf8string(v).c_str(); } |