Boost logo

Boost :

From: Craig Rodrigues (rodrigc_at_[hidden])
Date: 2002-03-03 11:36:13


Hi,

I compiled Boost gcc 3.1 20020302 (prerelease)
with the following command:

$BOOST_ROOT/tools/build/jam_src/bin.linuxx86/jam -sBOOST_ROOT=$BOOST_ROOT -sTOOLS=gcc -sPYTHON_ROOT=/usr

I got a bunch of warnings in the Python directory:

gcc-C++-action libs/python/build/bin/ivect.so/gcc/debug/runtime-link-dynamic/shared-linkable-true/ivect.o
In file included from /u0/test/boost/boost/boost/python/detail/extension_class.hpp:27,
                 from /u0/test/boost/boost/boost/python/class_builder.hpp:7,
                 from libs/python/example/dvect.h:5,
                 from libs/python/example/ivect.cpp:4:
/u0/test/boost/boost/boost/python/detail/init_function.hpp: In static member
   function `static boost::python::detail::init*
   boost::python::detail::init_function<T>::create(boost::python::detail::signature1<A1>)':
/u0/test/boost/boost/boost/python/detail/init_function.hpp:178: warning: `
   typename boost::python::detail::parameter_traits<A1>::const_reference' is
   implicitly a typename
/u0/test/boost/boost/boost/python/detail/init_function.hpp:178: warning: implicit
   typename is deprecated, please see the documentation for details
/u0/test/boost/boost/boost/python/detail/init_function.hpp: In static member
   function `static boost::python::detail::init*
   boost::python::detail::init_function<T>::create(boost::python::detail::signature2<A1,
   A2>)':
/u0/test/boost/boost/boost/python/detail/init_function.hpp:184: warning: `
   typename boost::python::detail::parameter_traits<A1>::const_reference' is
   implicitly a typename
/u0/test/boost/boost/boost/python/detail/init_function.hpp:184: warning: implicit
   typename is deprecated, please see the documentation for details
/u0/test/boost/boost/boost/python/detail/init_function.hpp:185: warning: `
   typename boost::python::detail::parameter_traits<A2>::const_reference' is
   implicitly a typename
/u0/test/boost/boost/boost/python/detail/init_function.hpp:185: warning: implicit
   typename is deprecated, please see the documentation for details
/u0/test/boost/boost/boost/python/detail/init_function.hpp: In static member
   function `static boost::python::detail::init*
   boost::python::detail::init_function<T>::create(boost::python::detail::signature3<A1,
   A2, A3>)':

etc.

Here is a patch:

Index: boost/python/detail/init_function.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/python/detail/init_function.hpp,v
retrieving revision 1.5
diff -u -u -r1.5 init_function.hpp
--- boost/python/detail/init_function.hpp 20 Jan 2002 03:08:08 -0000 1.5
+++ boost/python/detail/init_function.hpp 3 Mar 2002 16:30:00 -0000
@@ -175,106 +175,106 @@
     template <class A1>
     static init* create(signature1<A1>) {
         return new init1<T,
- detail::parameter_traits<A1>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference>;
     }
 
     template <class A1, class A2>
     static init* create(signature2<A1, A2>) {
         return new init2<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference>;
     }
 
     template <class A1, class A2, class A3>
     static init* create(signature3<A1, A2, A3>) {
         return new init3<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4>
     static init* create(signature4<A1, A2, A3, A4>) {
         return new init4<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5>
     static init* create(signature5<A1, A2, A3, A4, A5>) {
         return new init5<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5, class A6>
     static init* create(signature6<A1, A2, A3, A4, A5, A6>) {
         return new init6<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference,
- detail::parameter_traits<A6>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference,
+ typename detail::parameter_traits<A6>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5, class A6, class A7>
     static init* create(signature7<A1, A2, A3, A4, A5, A6, A7>) {
         return new init7<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference,
- detail::parameter_traits<A6>::const_reference,
- detail::parameter_traits<A7>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference,
+ typename detail::parameter_traits<A6>::const_reference,
+ typename detail::parameter_traits<A7>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8>
     static init* create(signature8<A1, A2, A3, A4, A5, A6, A7, A8>) {
         return new init8<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference,
- detail::parameter_traits<A6>::const_reference,
- detail::parameter_traits<A7>::const_reference,
- detail::parameter_traits<A8>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference,
+ typename detail::parameter_traits<A6>::const_reference,
+ typename detail::parameter_traits<A7>::const_reference,
+ typename detail::parameter_traits<A8>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9>
     static init* create(signature9<A1, A2, A3, A4, A5, A6, A7, A8, A9>) {
         return new init9<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference,
- detail::parameter_traits<A6>::const_reference,
- detail::parameter_traits<A7>::const_reference,
- detail::parameter_traits<A8>::const_reference,
- detail::parameter_traits<A9>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference,
+ typename detail::parameter_traits<A6>::const_reference,
+ typename detail::parameter_traits<A7>::const_reference,
+ typename detail::parameter_traits<A8>::const_reference,
+ typename detail::parameter_traits<A9>::const_reference>;
     }
 
     template <class A1, class A2, class A3, class A4, class A5, class A6, class A7, class A8, class A9, class A10>
     static init* create(signature10<A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>) {
         return new init10<T,
- detail::parameter_traits<A1>::const_reference,
- detail::parameter_traits<A2>::const_reference,
- detail::parameter_traits<A3>::const_reference,
- detail::parameter_traits<A4>::const_reference,
- detail::parameter_traits<A5>::const_reference,
- detail::parameter_traits<A6>::const_reference,
- detail::parameter_traits<A7>::const_reference,
- detail::parameter_traits<A8>::const_reference,
- detail::parameter_traits<A9>::const_reference,
- detail::parameter_traits<A10>::const_reference>;
+ typename detail::parameter_traits<A1>::const_reference,
+ typename detail::parameter_traits<A2>::const_reference,
+ typename detail::parameter_traits<A3>::const_reference,
+ typename detail::parameter_traits<A4>::const_reference,
+ typename detail::parameter_traits<A5>::const_reference,
+ typename detail::parameter_traits<A6>::const_reference,
+ typename detail::parameter_traits<A7>::const_reference,
+ typename detail::parameter_traits<A8>::const_reference,
+ typename detail::parameter_traits<A9>::const_reference,
+ typename detail::parameter_traits<A10>::const_reference>;
     }
 };
 

-- 
Craig Rodrigues        
http://www.gis.net/~craigr    
rodrigc_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk