Fwd: [Patch] Inline Variables for the Standard Library (p0607r0)
Daniel Krügler
daniel.kruegler@gmail.com
Sat Mar 11 18:32:00 GMT 2017
This patch applies inline to all namespace scope const variables
according to options A and B2 voted in during the Kona meeting, see:
http://wiki.edg.com/pub/Wg21kona2017/StrawPolls/p0607r0.html
During that work it has been found that std::ignore was not declared
constexpr (http://cplusplus.github.io/LWG/lwg-defects.html#2773),
which was fixed as well.
The patch suggests to apply the same fix to implementation-private
constants such as __index_of_v, for example, as well.
Due to the large number of affected variables in header
include/bits/regex_constants.h and include/type_traits, I used a
shortened description of the changes in the ChangeLog instead of
enumerating each constant individually, I hope that this is ok.
Please note that I added the newly introduced _GLIBCXX17_INLINE also
to the commented references of hardware_destructive_interference_size
and hardware_constructive_interference_size in
testsuite/18_support/headers/new/synopsis.cc as a reminder when these
constants will be introduced in the future.
This patch is *untested*, because I cannot make the tests run on my
Windows system.
- Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ChangeLog_p0607r0.patch
Type: application/octet-stream
Size: 1909 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170311/1c1f48b6/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p0607r0.patch
Type: application/octet-stream
Size: 32002 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20170311/1c1f48b6/attachment-0001.obj>
More information about the Libstdc++
mailing list