deprecate _format UDL in code using FMT_DEPRECATED

This commit is contained in:
Alexey Ochapov
2021-12-12 00:57:14 +03:00
committed by Victor Zverovich
parent c882790a2e
commit e46392ea2c
2 changed files with 19 additions and 1 deletions

View File

@@ -3056,7 +3056,7 @@ constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
using namespace fmt::literals;
std::string message = "The answer is {}"_format(42);
*/
constexpr auto operator"" _format(const char* s, size_t n)
FMT_DEPRECATED constexpr auto operator"" _format(const char* s, size_t n)
-> detail::udl_formatter<char> {
return {{s, n}};
}