mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added specialization to log unsigned chars as integers
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@413 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
47cf8b3e47
commit
6e1e22c559
1 changed files with 1 additions and 1 deletions
|
|
@ -561,5 +561,5 @@ BOOST_AUTO_TEST_CASE( mock_detail_template_template_streamable_yields_its_value_
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE( unsigned_char_is_serialized_as_int )
|
BOOST_AUTO_TEST_CASE( unsigned_char_is_serialized_as_int )
|
||||||
{
|
{
|
||||||
BOOST_CHECK_EQUAL( boost::lexical_cast< std::string >( int( 'a' ) ), to_string( unsigned char( 'a' ) ) );
|
BOOST_CHECK_EQUAL( boost::lexical_cast< std::string >( static_cast< int >( 'a' ) ), to_string< unsigned char >( 'a' ) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue