Provide explicit copy operator declaration to avoid compiler warning

pull/20/head
hvellyr 8 years ago committed by gck
parent d95cef6c1b
commit 5d3d63cf11
  1. 2
      peglib.h

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

Loading…
Cancel
Save