2121#line 2 "pure2-raw-string-literal-and-interpolation.cpp2"
2222 auto i {42 };
2323 std::map<std::string,int > m {};
24- cpp2::assert_in_bounds (m, " one" ) = 1 ;
25- cpp2::assert_in_bounds (m, " two" ) = 2 ;
24+ CPP2_ASSERT_IN_BOUNDS (m, " one" ) = 1 ;
25+ CPP2_ASSERT_IN_BOUNDS (m, " two" ) = 2 ;
2626
2727 std::string str {" this is a string" };
2828
@@ -38,7 +38,7 @@ lines)test"};
3838that can last for multiple
3939lines
4040)test" + cpp2::to_string (i) + R"test( R"(this can be added too)"
41- calculations like m["one"] + m["two"] = )test" + cpp2::to_string (cpp2::assert_in_bounds (m, " one" ) + cpp2::assert_in_bounds (m, " two" )) + R"test( also works
41+ calculations like m["one"] + m["two"] = )test" + cpp2::to_string (CPP2_ASSERT_IN_BOUNDS (m, " one" ) + CPP2_ASSERT_IN_BOUNDS (m, " two" )) + R"test( also works
4242)test" + cpp2::to_string (" at the beginning of the line" ) + R"test( !!!)test" };
4343
4444 std::string raw_str_inter_multi {R"(
@@ -50,6 +50,6 @@ calculations like m["one"] + m["two"] = )test" + cpp2::to_string(cpp2::assert_in
5050 std::cout << std::move (raw_str_multi) << std::endl;
5151 std::cout << std::move (raw_str_inter) << std::endl;
5252 std::cout << std::move (raw_str_inter_multi) << std::endl;
53- std::cout << (cpp2::to_string (cpp2::assert_in_bounds (m, " one" )) + R"( .)" + cpp2::to_string (cpp2::assert_in_bounds (m, " two" )) + R"( .)" + cpp2::to_string (cpp2::assert_in_bounds (std::move (m), " three" )) + R"( .)" + cpp2::to_string (std::move (i))) << std::endl;
53+ std::cout << (cpp2::to_string (CPP2_ASSERT_IN_BOUNDS (m, " one" )) + R"( .)" + cpp2::to_string (CPP2_ASSERT_IN_BOUNDS (m, " two" )) + R"( .)" + cpp2::to_string (CPP2_ASSERT_IN_BOUNDS (std::move (m), " three" )) + R"( .)" + cpp2::to_string (std::move (i))) << std::endl;
5454}
5555
0 commit comments