No matching overload found

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

No matching overload found

Сергей Владимирович
Why luabind can't use this function?

C++ code:
Vector3f createVector3f ( float x, float y, float z );

Lua Code:
function UiControl:setScale ( value )
log ( "UiControl:setScale: " .. value )
local s = createVector3f ( value, value, 1 ) --error
self.mesh:setScale ( s )
self.mesh:update ()

UiControl:setScale: 1
No matching overload found, candidates:
Vector3f createVector3f(custom [f],custom [f],custom [f])

I know, this code works:
local s = createVector3f ( 1, 1, 1 )
Why it doesn't when I pass an variable?

Point me, please, where to dig.

Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now.
luabind-user mailing list
[hidden email]