Skip to content

Commit

Permalink
fix: compile error with clang 16
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim committed Apr 25, 2024
1 parent a2eb1b3 commit 7b908bb
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions include/proxysql_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,12 @@
#define ETIME ETIMEDOUT
#endif

// #ifdef CXX17
// template<class...> struct conjunction : std::true_type { };
// template<class B1> struct std::conjunction<B1> : B1 { };
// template<class B1, class... Bn>
// struct std::conjunction<B1, Bn...>
// : std::conditional<bool(B1::value), std::conjunction<Bn...>, B1>::type {};
// #else
template<class...> struct conjunction : std::true_type { };
template<class B1> struct conjunction<B1> : B1 { };
template<class B1, class... Bn>
struct conjunction<B1, Bn...>
: std::conditional<bool(B1::value), conjunction<Bn...>, B1>::type {};
// #endif // CXX17

/**
* @brief Stores the result of formatting the first parameter with the provided
* arguments, into the std::string reference provided in the second parameter.
Expand Down

0 comments on commit 7b908bb

Please sign in to comment.