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
No error on argument type mismatch for optional with SOL_SAFE_NUMERICS #1552
Open
glebm opened 10 months ago
I have a function like this:
The intent is that it can be called from Lua with or without an argument.
So this works:
However, the following also works and passes
nullopt
!This seems like a bug. I'd prefer it to raise a Lua error instead!
My sol2 config: