mirror of
https://github.com/boostorg/leaf.git
synced 2026-02-10 23:42:20 +00:00
Support for BOOST_LEAF_EMBEDDED, removing all diagnostics support, std::string/std::stringstream
This commit is contained in:
@@ -39,6 +39,7 @@ void test( G && g )
|
||||
[]( info<42> const & i42, leaf::diagnostic_info const & di )
|
||||
{
|
||||
BOOST_TEST_EQ(i42.value, 42);
|
||||
#ifndef BOOST_LEAF_DISABLE_STD_STRING
|
||||
std::stringstream ss; ss << di;
|
||||
std::string s = ss.str();
|
||||
std::cout << s;
|
||||
@@ -46,6 +47,7 @@ void test( G && g )
|
||||
BOOST_TEST(s.find("info<-42>")!=s.npos);
|
||||
#else
|
||||
BOOST_TEST(s.find("BOOST_LEAF_DIAGNOSTICS")!=s.npos);
|
||||
#endif
|
||||
#endif
|
||||
return 1;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user