Home | History | Annotate | Download | only in any.cast

Lines Matching refs:any

12 // <any>
15 // ValueType any_cast(any &&);
19 #include <any>
22 using std::any;
27 const any a;
28 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be a const lvalue reference or a CopyConstructible type"}}
29 // expected-error@any:* {{binding value of type 'const TestType' to reference to type 'TestType' drops 'const' qualifier}}
32 const any a2(42);
33 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be a const lvalue reference or a CopyConstructible type"}}
34 // expected-error@any:* {{binding value of type 'const int' to reference to type 'int' drops 'const' qualifier}}
40 any a;
41 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an lvalue reference or a CopyConstructible type"}}
44 any a2(42);
45 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an lvalue reference or a CopyConstructible type"}}
51 any a;
52 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an rvalue reference or a CopyConstructible type"}}
53 // expected-error@any:* {{non-const lvalue reference to type 'TestType' cannot bind to a temporary}}
56 // expected-error-re@any:* {{static_assert failed{{.*}} "ValueType is required to be an rvalue reference or a CopyConstructible type"}}
57 // expected-error@any:* {{non-const lvalue reference to type 'int' cannot bind to a temporary}}