1 // X10-FallbackStringifier.cpp 2 // Test that defining fallbackStringifier compiles 3 4 #include <string> 5 6 // A catch-all stringifier 7 template <typename T> fallbackStringifier(T const &)8std::string fallbackStringifier(T const&) { 9 return "{ !!! }"; 10 } 11 12 #define CATCH_CONFIG_MAIN 13 #include <catch2/catch.hpp> 14 15 struct foo { operator boolfoo16 explicit operator bool() const { 17 return true; 18 } 19 }; 20 21 TEST_CASE("aa") { 22 REQUIRE(foo{}); 23 } 24