[C++-sig] Pyste bug: const data not made read only
Nicodemus
nicodemus at esss.com.br
Fri Oct 24 00:27:59 CEST 2003
Hi Niall, sorry about the delay (I was out of town),
Niall Douglas wrote:
>In a class which has:
>
>static const type variable;
>
>... pyste is outputting def_readwrite() where it should be outputting
>def_readonly(). The def_readwrite() fails to compile (correctly) and
>so until changed public data members like this are a problem.
>
Can you post a reproductible case? I tried to reproduce this bug,
however the generated code seems correct:
struct A
{
static const int variable;
};
Generates:
class_< A >("A", init< >())
.def(init< const A& >())
.def_readonly("variable", &A::variable)
;
Regards,
Nicodemus.
More information about the Cplusplus-sig
mailing list