Searched refs:ExplicitCopy (Results 1 – 7 of 7) sorted by relevance
22 struct ExplicitCopy { struct23 ExplicitCopy(int) {} in ExplicitCopy() argument24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument27 std::tuple<ExplicitCopy> const_explicit_copy() { in const_explicit_copy()28 const ExplicitCopy e(42); in const_explicit_copy()34 std::tuple<ExplicitCopy> non_const_explicit_copy() { in non_const_explicit_copy()35 ExplicitCopy e(42); in non_const_explicit_copy()40 std::tuple<ExplicitCopy> const_explicit_copy_no_brace() { in const_explicit_copy_no_brace()41 const ExplicitCopy e(42); in const_explicit_copy_no_brace()
23 struct ExplicitCopy { struct24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() function25 explicit ExplicitCopy(int) {} in ExplicitCopy() argument28 std::tuple<ExplicitCopy> const_explicit_copy_test() { in const_explicit_copy_test()29 const ExplicitCopy e(42); in const_explicit_copy_test()34 std::tuple<ExplicitCopy> non_const_explicity_copy_test() { in non_const_explicity_copy_test()35 ExplicitCopy e(42); in non_const_explicity_copy_test()
22 struct ExplicitCopy { struct23 explicit ExplicitCopy(int) {} in ExplicitCopy() argument24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() function28 std::tuple<ExplicitCopy> const_explicit_copy_test() { in const_explicit_copy_test()34 std::tuple<ExplicitCopy> non_const_explicit_copy_test() { in non_const_explicit_copy_test()
22 struct ExplicitCopy { struct23 explicit ExplicitCopy(int) {} in ExplicitCopy() function24 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument27 std::tuple<ExplicitCopy> explicit_move_test() { in explicit_move_test()
16 struct ExplicitCopy { struct19 ExplicitCopy() { id = 15; } in ExplicitCopy() argument20 ExplicitCopy(const ExplicitCopy &x) { id = 25; } in ExplicitCopy() argument21 ~ExplicitCopy() { id = 35; } in ~ExplicitCopy() argument26 ExplicitCopy o2; // non-trivial initialization.
28 struct ExplicitCopy { struct29 ExplicitCopy(); // expected-note 2{{not viable}}30 explicit ExplicitCopy(const ExplicitCopy&);32 auto init_kind_1 = [ec(ExplicitCopy())] {}; in __anon9e86fe3e0502()33 auto init_kind_2 = [ec = ExplicitCopy()] {}; // expected-error {{no matching constructor}} in __anon9e86fe3e0602()40 template void init_kind_template<ExplicitCopy>(); // expected-note {{instantiation of}}
41 struct ExplicitCopy { struct42 explicit ExplicitCopy(ExplicitCopy const&) {} in ExplicitCopy() argument44 static_assert(!test_convertible<ExplicitCopy, ExplicitCopy>(), "Must not be convertible");