Fix namespace versioning and remove __detail::__identity helpers
commita7d80a35f52d4378f278d492de6bde69f165d7f9
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2017 18:32:55 +0000 (26 18:32 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 26 Jan 2017 18:32:55 +0000 (26 18:32 +0000)
tree0c141a8fa2968edea9210e0b3a1e9619c441c5b9
parentef64358050b62b296f1161e8c2ae2e9d36d8b4a8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244945 138bc75d-0d04-0410-961f-82ee72b054a4
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