mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Clarify that _format is deprecated
This commit is contained in:
@ -3048,14 +3048,12 @@ constexpr auto operator"" _a(const char* s, size_t) -> detail::udl_arg<char> {
|
|||||||
# endif
|
# endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\rst
|
DEPRECATED! User-defined literal equivalent of fmt::format.
|
||||||
User-defined literal equivalent of :func:`fmt::format`.
|
|
||||||
|
|
||||||
**Example**::
|
**Example**::
|
||||||
|
|
||||||
using namespace fmt::literals;
|
using namespace fmt::literals;
|
||||||
std::string message = "The answer is {}"_format(42);
|
std::string message = "The answer is {}"_format(42);
|
||||||
\endrst
|
|
||||||
*/
|
*/
|
||||||
constexpr auto operator"" _format(const char* s, size_t n)
|
constexpr auto operator"" _format(const char* s, size_t n)
|
||||||
-> detail::udl_formatter<char> {
|
-> detail::udl_formatter<char> {
|
||||||
|
Reference in New Issue
Block a user