mirror of
https://github.com/boostorg/variant2.git
synced 2025-08-01 13:14:27 +02:00
test/variant_many_types: add a constructor to Y
This commit is contained in:
@@ -29,6 +29,8 @@ template<class I> struct Y
|
|||||||
Y() = default;
|
Y() = default;
|
||||||
Y( Y const& ) = default;
|
Y( Y const& ) = default;
|
||||||
|
|
||||||
|
explicit Y( int v ): v_( v ) {}
|
||||||
|
|
||||||
Y& operator=( Y const& ) noexcept = default;
|
Y& operator=( Y const& ) noexcept = default;
|
||||||
|
|
||||||
Y& operator=( Y&& r ) noexcept
|
Y& operator=( Y&& r ) noexcept
|
||||||
|
Reference in New Issue
Block a user