Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
4.18k
stars
515
forks
source link
operator== that does not return a bool makes vector unable to bind #1516
Open
smbape opened 1 year ago
/opt/dev/lua-sol2/build_linux/_deps/sol2-src/include/sol/usertype_container.hpp:860:51: error: could not convert ‘operator==((*(const A*)(& value)), (*(const A*)(& sol::container_detail::get_value<A&>((sol::container_detail::usertype_container_default<std::vector<A>, void>::is_associative{std::integral_constant<bool, false>()}, std::integral_constant<bool, false>()), (* & it.__gnu_cxx::__normal_iterator<A*, std::vector<A> >::operator*())))))’ from ‘A’ to ‘bool’
Version : 3.3.0 OS : WSL Ubuntu 22.04.2 LTS
In the actual issue, I have no control over
A
, which prevents me from defining anoperator bool() const
. Is there a workaround?