You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libc++] Implement std::make_from_tuple mandates: If tuple_size_v<remove_reference_t<Tuple>> is 1, then reference_constructs_from_temporary_v<T, decltype(get<0>(declval<Tuple>()))> is false.
// template <class T, class Tuple> constexpr T make_from_tuple(Tuple&&);
14
+
// Mandates: If tuple_size_v<remove_reference_t<Tuple>> is 1, then reference_constructs_from_temporary_v<T, decltype(get<0>(declval<Tuple>()))> is false.
15
+
16
+
#include<tuple>
17
+
#include<utility>
18
+
19
+
voidtest() {
20
+
// expected-error@*:* {{static assertion failed}}
21
+
// expected-error@*:* {{returning reference to local temporary object}}
0 commit comments