2
0
mirror of https://github.com/boostorg/test.git synced 2026-02-15 01:22:08 +00:00
Files
test/doc/testing_tools/boost_test_string_comparison.qbk
2015-05-22 17:18:02 +02:00

16 lines
551 B
Plaintext

[/
/ Copyright (c) 2015 Boost development team
/
/ Distributed under the Boost Software License, Version 1.0. (See accompanying
/ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/]
[section:strings C-string comparison]
In the general case, pointers are compared using their value. However when type of the the pointers are `char*` or `wchar_t*`,
__BOOST_TEST__ promotes them as null terminated `char` arrays and string comparison is used instead.
[bt_example boost_test_string..BOOST_TEST string comparison]
[endsect]