Pass int64
"Valery" <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <028a01c9ddf5$abd81180$80aea8c0@winxpvpc> |
Hello,
I have a class that gets __int64 as a parameter in the constructor. I am
trying to create it from lua, but get the error "FAIL: Test: no constructor
of 'RawData' matched the arguments (number)
candidates are:
RawData(custom [__int64])"
Could anybody help?
.cpp
class RawData {
public: RawData(__int64) {}
};
luabind::class_<RawData, boost::shared_ptr<RawData> >("RawData")
.def(luabind::constructor<__int64>())
.lua
x=RawData(10)
Thanks,
Valery.
------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://www.creativitycat.com