diff --git a/examples/usertype_special_functions.cpp b/examples/usertype_special_functions.cpp index ef1492df..6528b684 100644 --- a/examples/usertype_special_functions.cpp +++ b/examples/usertype_special_functions.cpp @@ -34,7 +34,7 @@ int main() { "norm", [](const vec& self) { double len = std::sqrt(dot(self, self)); return vec(self.x / len, self.y / len); }, // we use `sol::resolve` because other operator+ can exist // in the (global) namespace - sol::meta_function::addition, sol::resolve(::operator+), + sol::meta_function::addition, sol::resolve(::operator+), sol::meta_function::subtraction, &vec::operator- );