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:
Howard Hinnant
2017-09-05 15:23:47 -04:00
committed by seelabs
parent 16acba1636
commit 4e6c8d8b35
15 changed files with 56 additions and 11 deletions

View File

@@ -67,6 +67,7 @@ public:
virtual ~STBase() = default;
STBase(const STBase& t) = default;
STBase& operator= (const STBase& t);
bool operator== (const STBase& t) const;

View File

@@ -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.

View File

@@ -118,6 +118,7 @@ public:
}
STPathElement(STPathElement const&) = default;
STPathElement& operator=(STPathElement const&) = default;
int
getNodeType () const