Provide explicit copy operator declaration to avoid compiler warning

This commit is contained in:
hvellyr 2016-05-25 09:15:39 +02:00 committed by gck
parent d95cef6c1b
commit 5d3d63cf11

View File

@ -345,6 +345,8 @@ public:
template <typename F, typename std::enable_if<std::is_same<F, std::nullptr_t>::value>::type*& = enabler> template <typename F, typename std::enable_if<std::is_same<F, std::nullptr_t>::value>::type*& = enabler>
void operator=(F /*fn*/) {} void operator=(F /*fn*/) {}
Action& operator=(const Action& rhs) = default;
operator bool() const { operator bool() const {
return (bool)fn_; return (bool)fn_;
} }