diff options
Diffstat (limited to 'nihil.ucl/emit.ccm')
| -rw-r--r-- | nihil.ucl/emit.ccm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nihil.ucl/emit.ccm b/nihil.ucl/emit.ccm index a451f88..c4aa79b 100644 --- a/nihil.ucl/emit.ccm +++ b/nihil.ucl/emit.ccm @@ -156,8 +156,8 @@ export auto operator<<(std::ostream &stream, object const &o) /* * Specialisation of std::formatter<> for object. */ -template<> -struct std::formatter<nihil::ucl::object, char> +template<std::derived_from<nihil::ucl::object> T> +struct std::formatter<T, char> { nihil::ucl::emitter emitter = nihil::ucl::emitter::json; |
