Merge branch 'master' of github.com:fmtlib/fmt
This commit is contained in:
@@ -1140,7 +1140,7 @@ template <typename Context> class value {
|
||||
FMT_INLINE value(const named_arg_info<char_type>* args, size_t size)
|
||||
: named_args{args, size} {}
|
||||
|
||||
template <typename T> FMT_INLINE value(const T& val) {
|
||||
template <typename T> FMT_CONSTEXPR FMT_INLINE value(const T& val) {
|
||||
custom.value = &val;
|
||||
// Get the formatter type through the context to allow different contexts
|
||||
// have different extension points, e.g. `formatter<T>` for `format` and
|
||||
|
||||
@@ -1935,10 +1935,11 @@ OutputIt write(OutputIt out, const T* value,
|
||||
}
|
||||
|
||||
template <typename Char, typename OutputIt, typename T>
|
||||
auto write(OutputIt out, const T& value) -> typename std::enable_if<
|
||||
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value ==
|
||||
type::custom_type,
|
||||
OutputIt>::type {
|
||||
FMT_CONSTEXPR auto write(OutputIt out, const T& value) ->
|
||||
typename std::enable_if<
|
||||
mapped_type_constant<T, basic_format_context<OutputIt, Char>>::value ==
|
||||
type::custom_type,
|
||||
OutputIt>::type {
|
||||
using context_type = basic_format_context<OutputIt, Char>;
|
||||
using formatter_type =
|
||||
conditional_t<has_formatter<T, context_type>::value,
|
||||
|
||||
Reference in New Issue
Block a user