[C++-sig] Visual C++ 6 error

David Abrahams david.abrahams at rcn.com
Wed Mar 13 04:07:36 CET 2002


Works for me, here.
Which service pack you got?

IF you want to check in that chage, though, be my guest.
-Dave
----- Original Message -----
From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>
To: <c++-sig at python.org>
Cc: <rwgk at cci.lbl.gov>
Sent: Tuesday, March 12, 2002 9:04 PM
Subject: [C++-sig] Visual C++ 6 error


> Using the boost cvs snapshot from a few hours ago I am experiencing
> problems with Visual C++ 6:
>
> cl.exe  /nologo /MD /GR /GX /Zm350 -I"r:\cctbx\include" -I"r:\boost"
> -I"c:\Python21\include" -c uctbxmodule.cpp
>
> r:\boost\boost/python/detail/init_function.hpp(178) : error C2899:
> typename cannot be used outside a template declaration
>
> This is the code from init_function.hpp:
>
>     template <class A1>
>     static init* create(signature1<A1>) {
>         return new init1<T,
>                        typename
detail::parameter_traits<A1>::const_reference>;
>     }
>
> I think this will work with VC6 (and any other compiler):
>
>     template <class A1>
>     static init* create(signature1<A1>) {
>         typedef typename detail::parameter_traits<A1>::const_reference
cr;
>         return new init1<T, cr>;
>     }
>
> Ralf
>
>
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig





More information about the Cplusplus-sig mailing list