deprecate _format UDL in code using FMT_DEPRECATED

This commit is contained in:
Alexey Ochapov
2021-12-18 08:33:20 -08:00
committed by Victor Zverovich
parent c882790a2e
commit e46392ea2c
2 changed files with 19 additions and 1 deletions
+1 -1
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}};
}