From: Jonathan Wakely Date: Fri, 3 Nov 2017 11:04:45 +0000 (+0000) Subject: Remove _Node_insert_return::get() member functions (P0508R0) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=97695d99b0caa475df0a7b569fee6d3bef35b4d7;p=gcc.git Remove _Node_insert_return::get() member functions (P0508R0) * include/bits/node_handle.h (_Node_insert_return::get): Remove, as per P0508R0. From-SVN: r254368 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3ca18b2f401..8cf1818fe5e 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2017-11-03 Jonathan Wakely + + * include/bits/node_handle.h (_Node_insert_return::get): Remove, as + per P0508R0. + 2017-11-01 François Dumont * python/libstdcxx/v6/printers.py (StdExpAnyPrinter.__init__): Strip diff --git a/libstdc++-v3/include/bits/node_handle.h b/libstdc++-v3/include/bits/node_handle.h index f93bfd7f686..4a830630c89 100644 --- a/libstdc++-v3/include/bits/node_handle.h +++ b/libstdc++-v3/include/bits/node_handle.h @@ -282,54 +282,6 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _Iterator position = _Iterator(); bool inserted = false; _NodeHandle node; - - template - decltype(auto) get() & - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return inserted; - else if constexpr (_Idx == 1) - return position; - else if constexpr (_Idx == 2) - return node; - } - - template - decltype(auto) get() const & - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return inserted; - else if constexpr (_Idx == 1) - return position; - else if constexpr (_Idx == 2) - return node; - } - - template - decltype(auto) get() && - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return std::move(inserted); - else if constexpr (_Idx == 1) - return std::move(position); - else if constexpr (_Idx == 2) - return std::move(node); - } - - template - decltype(auto) get() const && - { - static_assert(_Idx < 3); - if constexpr (_Idx == 0) - return std::move(inserted); - else if constexpr (_Idx == 1) - return std::move(position); - else if constexpr (_Idx == 2) - return std::move(node); - } }; _GLIBCXX_END_NAMESPACE_VERSION