error C2976 in python tutorial?
24 Aug
2007
24 Aug
'07
7:04 a.m.
Probably
Has anybody faced error C2976: 'boost::python::class_' : too few template
arguments? Compiler msvc-8.0.
BOOST_PYTHON_MODULE(hello){
class_<World>("World")
.def("greet", &World::greet)
.def("set", &World::set)
;
}
produced that. Source code follows.
#include <string>
char const* greet()
{
return "hello, world";
}
struct World
{
void set(std::string msg) { this->msg = msg; }
std::string greet() { return msg; }
std::string msg;
};
#include
6305
Age (days ago)
6305
Last active (days ago)
0 comments
1 participants
participants (1)
-
Guido Ziliotti