[C++-sig] reproducing the bug (???) with -pedantic
David Abrahams
dave at boost-consulting.com
Tue May 6 16:04:18 CEST 2003
Giulio Eulisse <giulio.eulisse at cern.ch> writes:
> On Tue, 2003-05-06 at 14:34, David Abrahams wrote:
>> Giulio Eulisse <giulio.eulisse at cern.ch> writes:
>>
>> > I think I menaged to create a simple example to reproduce the problem I
>> > have with -pedantic.
>>
>> Which version of GCC are you using?
>
> "gcc -v" output:
>
> Reading specs from
> /usr/local/gcc-alt-3.2/lib/gcc-lib/i686-pc-linux-gnu/3.2/specs
> Configured with: ./configure --prefix=/usr/local/gcc-alt-3.2
> --enable-shared
> Thread model: posix
> gcc version 3.2
>
> I'm in the process of trying with 3.2.2.
try changing line 37 of make_ptr_instance.hpp from:
PyTypeObject* derived = get_derived_class_object(is_polymorphic<U>::type(), p);
to
PyTypeObject* derived = get_derived_class_object(typename is_polymorphic<U>::type(), p);
^^^^^^^^
and let me know.
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list