$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Anton Gluck (gluc_at_[hidden])
Date: 2000-10-22 22:48:37
Hi,
This time I'm trying to expose a method that uses an enumeration as an
argument to Python.
This is the method I'm trying to wrap:
void SomeClass::SetSomeMeasure(SomeMeasure s) {
measure = s;
}
SomeMeasure is defined in the corresponding header file as:
enum SomeMeasure {
case1 = 1,
case2
};
The wrapper code is:
SomeClass_class.def(SomeClass::SetSomeMeasure,"SetSomeMeasure");
The error I get is:
d:\py_cpp/caller.h(275) : error C2665: 'from_python' : none of the 86
overloads can convert parameter 2 from type 'struct py::Type<enum
SomeClass::SomeMeasure>'
As usual, I'd appreciate any help.
Toni