From 792b61321d1845bb085660d0f6276facdca13f7e Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 19 Sep 2014 11:39:35 -0400 Subject: [PATCH] Use 2 string types to properly filter bad name-based usertype overloads. --- sol/usertype.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sol/usertype.hpp b/sol/usertype.hpp index 75468168..e2316029 100644 --- a/sol/usertype.hpp +++ b/sol/usertype.hpp @@ -317,10 +317,10 @@ public: usertype(Args&&... args): usertype(default_constructor, std::forward(args)...) {} template - SOL_DEPRECATED usertype(std::string, Args&&... args): usertype(default_constructor, std::forward(args)...) {} + SOL_DEPRECATED usertype(std::string, std::string, Args&&... args): usertype(default_constructor, std::forward(args)...) {} template - SOL_DEPRECATED usertype(const char*, Args&&... args): usertype(default_constructor, std::forward(args)...) {} + SOL_DEPRECATED usertype(const char*, std::string, Args&&... args): usertype(default_constructor, std::forward(args)...) {} template SOL_DEPRECATED usertype(std::string, constructors c, Args&&... args) : usertype(std::move(c), std::forward(args)...) {}