1 // PR c++/59361 2 // { dg-do compile { target c++11 } } 3 4 template<bool ...Bs> 5 struct and_ 6 { 7 constexpr static bool value{true}; 8 }; 9 10 template<typename T> 11 struct true_ 12 { 13 constexpr operator bool() const { return true; } 14 }; 15 16 template<typename ...Ts> foo(Ts...)17constexpr bool foo(Ts...) 18 { 19 return and_<(true_<Ts>())...>::value; 20 } 21