From 8b246531e6b3d36da0c54dd8679d8d84cf6146ef Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 21 May 2018 20:27:58 -0700 Subject: [PATCH] Update changelog --- ChangeLog.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ChangeLog.rst b/ChangeLog.rst index b3198ced..e43ee2f3 100644 --- a/ChangeLog.rst +++ b/ChangeLog.rst @@ -41,11 +41,11 @@ .. code:: c++ - struct S {}; + struct Answer {}; namespace fmt { template <> - struct formatter { + struct formatter { constexpr auto parse(parse_context& ctx) { auto it = ctx.begin(); spec = *it; @@ -55,7 +55,7 @@ } template - auto format(S, FormatContext& ctx) { + auto format(Answer, FormatContext& ctx) { return spec == 's' ? format_to(ctx.begin(), "{}", "fourty-two") : format_to(ctx.begin(), "{}", 42); @@ -65,10 +65,10 @@ }; } - std::string s = format(fmt("{:x}"), S()); + std::string s = format(fmt("{:x}"), Answer()); gives a compile-time error due to invalid format specifier (`godbolt - `_):: + `_):: ... :12:45: error: expression '' is not a constant expression