Title
Why is std::tie not constexpr?
Status
c++14
Section
[tuple.creation]
Submitter
Rein Halbersma

Created on 2013-09-11.00:00:00 last changed 122 months ago

Messages

Date: 2014-02-14.07:07:05

Proposed resolution:

This wording is relative to N3691.

  1. Change the header <tuple> synopsis, [tuple.general] p2 as indicated:

    template<class... Types>
      constexpr tuple<Types&...> tie(Types&...) noexcept;
    
  2. Change [tuple.creation] around p7 as indicated:

    template<class... Types>
      constexpr tuple<Types&...> tie(Types&... t) noexcept;
    
Date: 2014-02-13.00:00:00

[ 2014-02-13 Issaquah: Move as Immediate ]

Date: 2013-09-11.00:00:00

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, where the same observation was made about forward_as_tuple.

History
Date User Action Args
2014-02-27 17:03:20adminsetstatus: wp -> c++14
2014-02-20 13:52:38adminsetstatus: immediate -> wp
2014-02-14 07:07:05adminsetmessages: + msg6852
2014-02-14 07:07:05adminsetstatus: new -> immediate
2013-10-06 15:50:10adminsetmessages: + msg6672
2013-09-11 00:00:00admincreate