Skip to content

Commit adcf926

Browse files
committed
Replaced zero with nullptr in StaticClosure bool operator
1 parent 57ea1c8 commit adcf926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

closure.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ class StaticClosure<R(ARGS...), SIZE> {
324324
}
325325

326326
explicit operator bool() const {
327-
return m_vtable != 0 ? true : false;
327+
return m_vtable != nullptr ? true : false;
328328
}
329329

330330
R operator()(ARGS ... args) const {

0 commit comments

Comments
 (0)