Skip to content

Commit

Permalink
Fix handling FMT_BUILTIN_TYPES
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Sep 28, 2024
1 parent 1c5883b commit ff9ee04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,8 @@ template <typename Context> class value {
template <typename T, FMT_ENABLE_IF(is_named_arg<T>::value)>
value(const T& named_arg) : value(named_arg.value) {}

template <typename T, FMT_ENABLE_IF(use_formatter<T>::value)>
template <typename T,
FMT_ENABLE_IF(use_formatter<T>::value || !FMT_BUILTIN_TYPES)>
FMT_CONSTEXPR20 FMT_INLINE value(T& x) : value(x, custom_tag()) {}

FMT_ALWAYS_INLINE value(const named_arg_info<char_type>* args, size_t size)
Expand Down

0 comments on commit ff9ee04

Please sign in to comment.