Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix example to use the correct variable and avoid unused variable war…
…ning
  • Loading branch information
jeking3 committed Nov 11, 2018
commit 271d8ed2763f2f33e642ac941c4c254a08d56763
2 changes: 1 addition & 1 deletion example/const_string_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ BOOST_AUTO_TEST_CASE( constructors_test )
BOOST_CHECK_EQUAL( std::strcmp( cs2.data(), "test_string" ), 0 );

const_string cs3( cs1 );
BOOST_CHECK_EQUAL( std::strcmp( cs1.data(), "test_string" ), 0 );
BOOST_CHECK_EQUAL( std::strcmp( cs3.data(), "test_string" ), 0 );

const_string cs4( "test_string", 4 );
BOOST_CHECK_EQUAL( std::strncmp( cs4.data(), "test", cs4.length() ), 0 );
Expand Down