diff --git a/sol/proxy.hpp b/sol/proxy.hpp index 10f97528..0848fb58 100644 --- a/sol/proxy.hpp +++ b/sol/proxy.hpp @@ -122,7 +122,7 @@ inline bool operator!=(const proxy& right, T&& left) { } template -inline bool operator==(nil_t left, const proxy& right) { +inline bool operator==(nil_t, const proxy& right) { return !right.valid(); }