Move conjunction to where it is used

This commit is contained in:
Victor Zverovich 2023-12-23 14:35:11 -08:00
parent 7c240d52c3
commit a537c39fdf
2 changed files with 6 additions and 7 deletions

View File

@ -277,13 +277,6 @@ FMT_END_NAMESPACE
#endif
FMT_BEGIN_NAMESPACE
template <typename...> struct conjunction : std::true_type {};
template <typename P> struct conjunction<P> : P {};
template <typename P1, typename... Pn>
struct conjunction<P1, Pn...>
: conditional_t<bool(P1::value), conjunction<Pn...>, P1> {};
namespace detail {
FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {

View File

@ -417,6 +417,12 @@ struct is_formattable_delayed
#endif
} // namespace detail
template <typename...> struct conjunction : std::true_type {};
template <typename P> struct conjunction<P> : P {};
template <typename P1, typename... Pn>
struct conjunction<P1, Pn...>
: conditional_t<bool(P1::value), conjunction<Pn...>, P1> {};
template <typename T, typename Char, typename Enable = void>
struct range_formatter;