mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Remove use of deprecated behavior involving copy members
* If any of the destructor, copy assignment or copy constructor are user-declared, both copy members should be user-declared, otherwise the compiler-generation of them is deprecated.
This commit is contained in:
@@ -98,6 +98,7 @@ private:
|
||||
typename T::value_type;
|
||||
|
||||
public:
|
||||
ValueProxy(ValueProxy const&) = default;
|
||||
ValueProxy& operator= (ValueProxy const&) = delete;
|
||||
|
||||
template <class U>
|
||||
@@ -125,6 +126,7 @@ private:
|
||||
typename std::decay<value_type>::type>;
|
||||
|
||||
public:
|
||||
OptionalProxy(OptionalProxy const&) = default;
|
||||
OptionalProxy& operator= (OptionalProxy const&) = delete;
|
||||
|
||||
/** Returns `true` if the field is set.
|
||||
|
||||
Reference in New Issue
Block a user