[upstream_utils] Upgrade to fmt 11.0.1 (#6804)

This commit is contained in:
Tyler Veness
2024-07-07 06:40:15 -07:00
committed by GitHub
parent 0954ded60a
commit 32ed9c5f0b
4 changed files with 61 additions and 27 deletions

View File

@@ -23,7 +23,7 @@
#endif
// The fmt library version in the form major * 10000 + minor * 100 + patch.
#define FMT_VERSION 110000
#define FMT_VERSION 110001
// Detect compiler versions.
#if defined(__clang__) && !defined(__ibmxl__)
@@ -262,7 +262,7 @@
#ifndef FMT_BEGIN_NAMESPACE
# define FMT_BEGIN_NAMESPACE \
namespace fmt { \
inline namespace v10 {
inline namespace v11 {
# define FMT_END_NAMESPACE \
} \
}
@@ -1760,7 +1760,7 @@ template <typename Context> class basic_format_arg {
* `vis(value)` will be called with the value of type `double`.
*/
template <typename Visitor>
FMT_CONSTEXPR auto visit(Visitor&& vis) -> decltype(vis(0)) {
FMT_CONSTEXPR auto visit(Visitor&& vis) const -> decltype(vis(0)) {
switch (type_) {
case detail::type::none_type:
break;