From ca93be130abcef1d6776b19d3248338d4bccc3d0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 9 Mar 2018 15:40:40 -0800 Subject: [PATCH] Use fmt(s) as an alias for FMT_STRING(s) --- include/fmt/format.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/fmt/format.h b/include/fmt/format.h index 2cb7e828..09edaba7 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3527,6 +3527,10 @@ operator"" _a(const wchar_t *s, std::size_t) { return {s}; } return S{}; \ }() +#ifndef FMT_NO_FMT_STRING_ALIAS +# define fmt(s) FMT_STRING(s) +#endif + #ifdef FMT_HEADER_ONLY # define FMT_FUNC inline # include "format.cc"