Searched refs:CopyCannotThrow (Results 1 – 1 of 1) sorted by relevance
160 struct CopyCannotThrow { struct162 CopyCannotThrow() { ++alive; } in CopyCannotThrow() function163 CopyCannotThrow(const CopyCannotThrow &) noexcept { ++alive; } in CopyCannotThrow() function164 CopyCannotThrow(CopyCannotThrow &&) noexcept { assert(false); } in CopyCannotThrow() function165 CopyCannotThrow &operator=(const CopyCannotThrow &) noexcept = default;166 CopyCannotThrow &operator=(CopyCannotThrow &&) noexcept { assert(false); return *this; } in operator =() argument169 int CopyCannotThrow::alive = 0;504 using V = std::variant<int, CopyCannotThrow, std::string>; in test_copy_assignment_different_index()506 V v2(std::in_place_type<CopyCannotThrow>); in test_copy_assignment_different_index()507 assert(CopyCannotThrow::alive == 1); in test_copy_assignment_different_index()[all …]