Originally posted by Sir Ralph
The SDK largely compiles, I get 1 error and 615 warnings. Firaxis using deprecated functions, how reactionary... (There you have your complaint Zoid )
The error says "error C2665: 'boost::python::detail::make_getter' : none of the 3 overloads could convert all the argument types" - I'll check what that is.
The SDK largely compiles, I get 1 error and 615 warnings. Firaxis using deprecated functions, how reactionary... (There you have your complaint Zoid )
The error says "error C2665: 'boost::python::detail::make_getter' : none of the 3 overloads could convert all the argument types" - I'll check what that is.
From my (admitedly somewhat limited) understanding of C++, this error just indicates that function "make_getter" (in class detail in class python in class boost) was called with arguments that don't match any of the "make_getter" argument type lists that are available. I.E., the types of the arguments don't match function detail::make_getter's declared argument types, nor do they match the versions of "make_getter" further up the class chain (i.e., not the versions in "python" or "boost" either).
There are two solutions for this:
1. Add a new version of "make_getter" that matches the argument types of that function at the line it complains about. You would add the new version of the function in the definition of class "detail" (the "lowest" level).
2. (More efficient) Look at the argument types of function "make_getter" in class "detail" and compare those types to the types of each of the arguments passed at the line with the error. Likely a C++ "cast" can be used to tell the compiler that the apparently "wrong" types are really OK. Worst case, you need a conversion of one of the arguments to a compatible type.
#2 takes more research and understanding of the classes and types, but is usually the more efficient way to fix the error. Adding new overloaded definitions of a function adds more overhead than some argument type conversions (unless it is called from dozens of places, in which case a new version of the function is more efficient).
Just my USD$0.02 worth. Downloading now, and another project I haven't worked on for a while needs VC-2005 anyway, so maybe I'll give it a whack.
smacfan
P.S. --
Yay! The patch AND the SDK are HERE!
Comment