i have a problem with a templated class and bool as its template argument. see
this class
https://gitorious.org/codingninja/baukasten/blobs/develop/src/core/include/gener
ic_state.h
which is quite simple. see the declarations at the bottom
StateInt
StateString
StateBool
where the first two work without any problems. if i try to call setValue on a
StateBool in a lua script it throws the following exception:
terminate called after throwing an instance of 'std::runtime_error'
what(): SLB Exception:
-------------------------------------------------------
Lua Error:
scripts/update_state.lua:10: Unknown class b
Traceback:
[ 0 (C) ]
[ 1 (C) ] @ setValue(method)
[ 2 (main) ] scripts/update_state.lua:10
here's the lua snippet which would work if i change the type of the variable
from StateBool to StateInt:
...
testState:setValue( false )
...
here's the definition of the binding:
https://gitorious.org/codingninja/baukasten/blobs/develop/src/core/include/lua/g
lobal.h
any ideas?
Original issue reported on code.google.com by serge.ra...@gmail.com on 8 Sep 2011 at 8:15
Original issue reported on code.google.com by
serge.ra...@gmail.comon 8 Sep 2011 at 8:15