Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2003-03-18 09:28:40


--- David Abrahams <dave_at_[hidden]> wrote:
> "Ralf W. Grosse-Kunstleve" <rwgk_at_[hidden]> writes:
>
> > That change does not seem to make a difference. The compiler errors are
> still
> > exactly the same.
>
> Does 2.96 want the default argument (=0) to be repeated?

Is this what you mean?

Index: opaque_pointer_converter.hpp
===================================================================
RCS file: /cvsroot/boost/boost/boost/python/opaque_pointer_converter.hpp,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 opaque_pointer_converter.hpp
--- opaque_pointer_converter.hpp 12 Mar 2003 22:58:52 -0000 1.2.2.2
+++ opaque_pointer_converter.hpp 18 Mar 2003 14:18:27 -0000
@@ -118,12 +118,12 @@
 # define BOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID(Pointee) \
 namespace boost { namespace python { \
     template<> \
- inline type_info type_id(boost::type<Pointee>*) { \
+ inline type_info type_id(boost::type<Pointee>* = 0) { \
         return type_info (typeid (Pointee *)); \
     } \
     template<> \
     inline type_info type_id( \
- boost::type<const volatile Pointee &>*) { \
+ boost::type<const volatile Pointee &>* = 0) { \
         return type_info (typeid (Pointee *)); \
     } \
 }}

Here is the result:

gcc-C++-action
/net/taipan/scratch1/rwgk/bjam/libs/python/test/bin/opaque_ext.so/gcc/debug/runtime-link-dynamic/shared-linkable-true/opaque.o
opaque.cpp:55: default argument specified in explicit specialization
opaque.cpp:55: default argument specified in explicit specialization
opaque.cpp:56: default argument specified in explicit specialization
opaque.cpp:56: default argument specified in explicit specialization

    g++ -c -Wall -ftemplate-depth-100 -DBOOST_PYTHON_DYNAMIC_LIB -g -O0
-fno-inline -fPIC -I"/net/taipan/scratch1/rwgk/bjam/libs/python/test" -I
"/usr/local_cci/Python-2.2.1/include/python2.2" -I
"/net/boa/home1/rwgk/rc_1_30_0/boost" -o
"/net/taipan/scratch1/rwgk/bjam/libs/python/test/bin/opaque_ext.so/gcc/debug/runtime-link-dynamic/shared-linkable-true/opaque.o"
 "opaque.cpp"

...failed gcc-C++-action
/net/taipan/scratch1/rwgk/bjam/libs/python/test/bin/opaque_ext

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com


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