compiler error, c++
I am implementing an octree tree in c++ using visual studio. When i call the build function i get this error:
error C2664: 'BuildTree' : cannot convert parameter 5 from 'overloaded-function' to 'int' 1
this is the line that i get the error:
B开发者_JS百科uildTree(parent, 0.0 , 0.0, 0.0, length , maxLevel,0, 0.25);
and the function is this:
treeNode * BuildTree( treeNode * parent, float xx , float yy, float zz , int length ,int maxLevel,int val,float threshold)
Can anyone help me to correct this error?
There is probably a function named length
accessible in the current scope when you call the BuildTree
function.
Is length
a variable or a function name? Did you mean to call length()
?
精彩评论