This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of C++14 status.
2301. Why isstd::tie
not constexpr
?
Section: 22.4.5 [tuple.creation] Status: C++14 Submitter: Rein Halbersma Opened: 2013-09-11 Last modified: 2016-01-28
Priority: 2
View all other issues in [tuple.creation].
View all issues with C++14 status.
Discussion:
In N3471, a bunch of routines from header <tuple>
were made constexpr
.
make_tuple/tuple_cat/get<>(tuple)/
relational operators — all these were "constexpr
-ified". But not tie
. This is similar to Issue 2275(i), where the same observation was made about forward_as_tuple
.
[2014-02-13 Issaquah: Move as Immediate]
Proposed resolution:
This wording is relative to N3691.
Change the header <tuple>
synopsis, 22.4.1 [tuple.general] p2 as indicated:
template<class... Types> constexpr tuple<Types&...> tie(Types&...) noexcept;
Change 22.4.5 [tuple.creation] around p7 as indicated:
template<class... Types> constexpr tuple<Types&...> tie(Types&... t) noexcept;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4