Searched refs:CopyCannotThrow (Results 1 – 1 of 1) sorted by relevance
149 struct CopyCannotThrow { struct151 CopyCannotThrow() { ++alive; } in CopyCannotThrow() argument152 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow() function153 CopyCannotThrow(CopyCannotThrow &&) noexcept { assert(false); } in CopyCannotThrow() function154 CopyCannotThrow &operator=(const CopyCannotThrow &) noexcept = default;155 CopyCannotThrow &operator=(CopyCannotThrow &&) noexcept { assert(false); return *this; } in operator =() argument158 int CopyCannotThrow::alive = 0;493 using V = std::variant<int, CopyCannotThrow, std::string>; in test_copy_assignment_different_index()495 V v2(std::in_place_type<CopyCannotThrow>); in test_copy_assignment_different_index()496 assert(CopyCannotThrow::alive == 1); in test_copy_assignment_different_index()[all …]