You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom optional class optional_ref.
I want the std::string & co™️ to be pushed as sol::string, I tried using a specialization with std::enable_if but the complier gives duplicate definitions.
I am customizing it as following:
Imagine pushing an optional_ref<std::string> to lua and trying print on it! =>failure
Maybe a specialization for all copyable types is fine too. @ThePhD Maybe this is not sol related? But any help would be appreciated!
The text was updated successfully, but these errors were encountered:
I have a custom
optional
classoptional_ref
.I want the
std::string
& co™️ to be pushed assol::string
, I tried using a specialization withstd::enable_if
but the complier gives duplicate definitions.I am customizing it as following:
Imagine pushing an
optional_ref<std::string>
to lua and tryingprint
on it! =>failureMaybe a specialization for all copyable types is fine too.
@ThePhD Maybe this is not
sol
related? But any help would be appreciated!The text was updated successfully, but these errors were encountered: