Fix namespace versioning and remove __detail::__identity helpers
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Jan 2017 18:32:55 +0000 (18:32 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 26 Jan 2017 18:32:55 +0000 (18:32 +0000)
commit3e5fb20f1ffbc71f7593460dd28873025e03c64a
tree0c141a8fa2968edea9210e0b3a1e9619c441c5b9
parentb3db8d779a466722b3c232839c3a41a2fec195cd
Fix namespace versioning and remove __detail::__identity helpers

PR libstdc++/79243
* include/bits/c++config (literals::string_view_literals::__7): Add.
Only declare versioned namespaces for the relevant C++ dialects.
* include/experimental/bits/erase_if.h (fundamentals_v2::__detail):
Add versioning macros.
* include/experimental/bits/lfts_config.h:
(fundamentals_v1::__detail::__7, fundamentals_v2::__detail::__7): Add.
* include/experimental/string_view (fundamentals_v2::__detail):
Add versioning macros.
(fundamentals_v2::__detail::__identity): Remove.
(fundamentals_v2::__detail::__idt): Use common_type instead of
__detail::__identity.
* include/std/string_view (__detail::__identity, __detail::__idt):
Likewise.
(literals::string_view_literals): Fix nesting of versioning macros.

From-SVN: r244945
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/experimental/bits/erase_if.h
libstdc++-v3/include/experimental/bits/lfts_config.h
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/string_view