From b0612a5b68bab292cfdeae7c52f4b516939bff54 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 14 Nov 2016 20:49:59 -0500 Subject: [PATCH] special function used wrong resolve example --- examples/usertype_special_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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- );