[C++-sig] Returning const reference.
Kerim Borchaev
warkid at hotbox.ru
Thu Nov 21 15:05:39 CET 2002
Hello c++-sig,
I want to export function returning const ref:
///////////////////////
const int& f(){
static int i;
return i;
}
BOOST_PYTHON_MODULE(hello)
{
def("f", f);
}
///////////////////////
and while compiling I get this error code:
error C2079: 'cr' uses undefined struct 'boost::python::detail::specify_a_result_policy_to_wrap_functions_returning<T>'
with
[
T=const int &
]
what's wrong with what I'm doing?
Best regards,
Kerim mailto:warkid at hotbox.ru
More information about the Cplusplus-sig
mailing list