string_ref::size_type ptr_diff ( const char *res, const char *base ) {
BOOST_CHECK ( res >= base );
return static_cast<string_ref::size_type> ( res - base );
string_ref::size_type ptr_diff ( const char *res, const char *base ) {
BOOST_CHECK ( res >= base );
return static_cast<string_ref::size_type> ( res - base );
- BOOST_CHECK ( sr1 == sr1); // compare string_ref and string_ref
- BOOST_CHECK ( sr1 == str1); // compare string and string_ref
- BOOST_CHECK ( str1 == sr1 ); // compare string_ref and string
- BOOST_CHECK ( sr1 == arg ); // compare string_ref and pointer
- BOOST_CHECK ( arg == sr1 ); // compare pointer and string_ref
+ BOOST_CHECK ( sr1 == sr1); // compare string_ref and string_ref
+ BOOST_CHECK ( sr1 == str1); // compare string and string_ref
+ BOOST_CHECK ( str1 == sr1 ); // compare string_ref and string
+ BOOST_CHECK ( sr1 == arg ); // compare string_ref and pointer
+ BOOST_CHECK ( arg == sr1 ); // compare pointer and string_ref