mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-23 04:15:31 +00:00
Provide explicit copy operator declaration to avoid compiler warning
This commit is contained in:
parent
d95cef6c1b
commit
5d3d63cf11
2
peglib.h
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>
|
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_;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user