sol::this_environment doesn't have a value, i.e. the underlying std::optional is nullopt. However , the problem goes away
when either one of the prints is enabled in the Tick function !
It seems that the prints cause some side effect that sets the this_environment ?
Tested with Sol 3.3.0 (which reports 3.2.0 in sol.hpp) and with GCC 12.2.1.
Hello,
I have the following code
sol::this_environment doesn't have a value, i.e. the underlying std::optional is nullopt. However , the problem goes away when either one of the prints is enabled in the Tick function !
It seems that the prints cause some side effect that sets the this_environment ?
Tested with Sol 3.3.0 (which reports 3.2.0 in sol.hpp) and with GCC 12.2.1.
Thanks!