|
Boost Users : |
Subject: Re: [Boost-users] [uuid] constexpr uuid from string and ""_uuid literal
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2018-12-23 12:55:11
> -----Original Message-----
> From: Boost-users [mailto:boost-users-bounces_at_[hidden]] On Behalf Of Tobias Loew via Boost-users
> Sent: 23 December 2018 10:18
> To: boost-users_at_[hidden]
> Cc: Tobias Loew
> Subject: [Boost-users] [uuid] constexpr uuid from string and ""_uuid literal
>
> Hi,
> while searching for constexpr GUID from string generators, I found
> https://gist.github.com/AlexBAV/b58e92d7632bae5d6f5947be455f796f . Since I
> still work with VS 2015, I wrote a C++11 constexpr version incl. boost-uuid
> generators.
> If there's interest adding this to boost uuid, please have a look at
> https://github.com/tobias-loew/constexpr-GUID-cpp-11
Could use of Boost macros
Macros that allow use of C++11 features with C++03 compilers
BOOST_CONSTEXPR_OR_CONST, BOOST_CONSTEXPR or BOOST_STATIC_CONSTEXPR
that make code work that will work on all compiler versions
https://www.boost.org/doc/libs/1_69_0/libs/config/doc/html/boost_config/boost_macro_reference.html
?
The value of BOOST_NO_CXX11_CONSTEXPR The compiler does not support constexpr.
might also prove useful?
Removing C++03 on existing stuff will be disruptive and unpopular.
(New libraries can use C++anything without annoying anyone already happily using it ;-)
Paul
--- Paul A. Bristow Prizet Farmhouse Kendal UK LA8 8AB +44 (0) 1539 561830
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net