[C++-sig] Static public variable definition not working
David Abrahams
dave at boost-consulting.com
Sun Feb 12 05:20:33 CET 2006
"Niall Douglas" <s_sourceforge at nedprod.com> writes:
> On 10 Feb 2006 at 16:06, David Abrahams wrote:
>
>> > The offending line is in boost\libs\python\src\object\class.cpp in
>> > BPL where class_base::setattr() calls PyObject_SetAttrString().
>>
>> I object. What evidence do you have that this line is offending?
>
> That it throws an exception surely!
That doesn't make it wrong.
>> > Is it possible that because FXGLContext has a base of FXId that the
>> > wrapper for FXId has already set "metaClass" to its own metaClass?
>>
>> It is normally never a problem to call setattr to rebind an attribute
>> that already exists. Why do you think this would make a difference?
>
> If not, then it's some other cause.
Well, please find out what's really going on before you point fingers
at my code.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list