MCPcopy Create free account
hub / github.com/boostorg/pfr / to_string_test

Function to_string_test

test/core/run/read_write.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template <class T>
27void to_string_test(const T& value, const char* ethalon) {
28 std::stringstream ss;
29 ss << boost::pfr::io(value);
30 BOOST_TEST_EQ(ss.str(), ethalon);
31}
32
33template <class T>
34void test_type(const T& value, const char* ethalon) {

Callers 1

test_typeFunction · 0.70

Calls 1

ioFunction · 0.85

Tested by 1

test_typeFunction · 0.56