2
0
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:
Emil Dotchevski
2022-01-03 12:00:56 -08:00
parent 1d96d77bdc
commit 996edca175
38 changed files with 422 additions and 147 deletions

View File

@@ -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;
},