BOOST_TEST_STRING_VIEW

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

BOOST_TEST_STRING_VIEW

Boost - Users mailing list
Hi Boost Users,
 
Does anyone know what BOOST_TEST_STRING_VIEW is for?
 
Kind regards,
Leo
 

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_TEST_STRING_VIEW

Boost - Users mailing list
On Tue, 10 Mar 2020 at 03:35, Leo Carreon via Boost-users
<[hidden email]> wrote:
>
> Hi Boost Users,
>
> Does anyone know what BOOST_TEST_STRING_VIEW is for?

You can get an idea by inspecting the handful of places
https://github.com/boostorg/test/search?q=BOOST_TEST_STRING_VIEW

Here is also a comment that may clarify things
https://github.com/boostorg/test/blob/d67b6433098c891a3e0944ae878d3caad70be883/include/boost/test/utils/basic_cstring/basic_cstring.hpp#L178-L182

I'd suggest you to open an issue with request to document the macro
https://github.com/boostorg/test/issues

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net
_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users
Reply | Threaded
Open this post in threaded view
|

Re: BOOST_TEST_STRING_VIEW

Boost - Users mailing list
In reply to this post by Boost - Users mailing list
On 10.03.20 03:35, Leo Carreon via Boost-users wrote:
> Hi Boost Users,
>  
> Does anyone know what BOOST_TEST_STRING_VIEW is for?
>  
> Kind regards,
> Leo

This is a "define" that indicates that string view comparison is
supported in Boost.Test (as any string type comparison within BOOST_TEST
macro).
It does not go to the ABI of Boost.Test, and is evaluated during the
compilation of the test module.

Raffi

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users