$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Eric van Riet Paap (eric_at_[hidden])
Date: 2001-03-19 18:26:29
I've just posted this:
---------
enum KEY
{
TAB =8,
CR =10,
ESCAPE =27,
SPACE =32,
};
boost::python::enum_as_int_converters<KEY> thekeys;
this_module.add(boost::python::to_python(TAB), "TAB");
--------
However, because the last line gives compile errors I tried:
vr.add(boost::python::ref(boost::python::to_python(TAB)), "TAB");
And that seems to work. But since it is written incorrent in the documentation I am not sure if this is the correct way.
Please enlighten me!
Eric