// X10-FallbackStringifier.cpp | |
// Test that defining fallbackStringifier compiles | |
// A catch-all stringifier | |
template <typename T> | |
std::string fallbackStringifier(T const&) { | |
return "{ !!! }"; | |
} | |
struct foo { | |
explicit operator bool() const { | |
return true; | |
} | |
}; | |
TEST_CASE("aa") { | |
REQUIRE(foo{}); | |
} | |