mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-30 06:32:48 +00:00
Move conjunction to where it is used
This commit is contained in:
parent
7c240d52c3
commit
a537c39fdf
@ -277,13 +277,6 @@ FMT_END_NAMESPACE
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
FMT_BEGIN_NAMESPACE
|
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 {
|
namespace detail {
|
||||||
|
|
||||||
FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
|
FMT_CONSTEXPR inline void abort_fuzzing_if(bool condition) {
|
||||||
|
@ -417,6 +417,12 @@ struct is_formattable_delayed
|
|||||||
#endif
|
#endif
|
||||||
} // namespace detail
|
} // 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>
|
template <typename T, typename Char, typename Enable = void>
|
||||||
struct range_formatter;
|
struct range_formatter;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user