mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Use 2 string types to properly filter bad name-based usertype overloads.
This commit is contained in:
parent
79b04acd66
commit
792b61321d
|
@ -317,10 +317,10 @@ public:
|
||||||
usertype(Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
usertype(Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
SOL_DEPRECATED usertype(std::string, Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
SOL_DEPRECATED usertype(std::string, std::string, Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
SOL_DEPRECATED usertype(const char*, Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
SOL_DEPRECATED usertype(const char*, std::string, Args&&... args): usertype(default_constructor, std::forward<Args>(args)...) {}
|
||||||
|
|
||||||
template<typename... Args, typename... CArgs>
|
template<typename... Args, typename... CArgs>
|
||||||
SOL_DEPRECATED usertype(std::string, constructors<CArgs...> c, Args&&... args) : usertype(std::move(c), std::forward<Args>(args)...) {}
|
SOL_DEPRECATED usertype(std::string, constructors<CArgs...> c, Args&&... args) : usertype(std::move(c), std::forward<Args>(args)...) {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user