Boost logo

Boost :

From: Eames, Andrew (andrew_at_[hidden])
Date: 2007-12-18 10:06:47

I'm using boost 1.34.1. These are the 3 changes I have needed to make so
far - I haven't looked at the trunk to see if they are still needed


In shared_ptr.hpp

> #if defined(__GNUC__) && (__GNUC__ < 3)
> template<class Y> std::ostream & operator<< (std::ostream & os,
shared_ptr<Y> const & p)
> {
> os << p.get();
> return os;

The #if clause should be something more generic as to whether old-style
streams are being used - I didn't see a suitable macro for this


In shared_ptr.hpp

//My compiler doesn't support inline functions with varargs


<<inline void sp_enable_shared_from_this( shared_count const & /*pn*/,
... )


>>inline void sp_enable_shared_from_this( shared_count const & /*pn*/)
>>template <class T>
>>void sp_enable_shared_from_this( shared_count const & /*pn*/,T arg1,
... )


In sp_counted_impl.hpp,typeid is used. I gather from other posts that
this will be addressed in 1.35 :)

FWIW, I put this in my copy (there is probably something more elegant)

    virtual void * get_deleter( std::type_info const & ti )
#if !defined(BOOST_NO_TYPEID)
        return ti == typeid(D)? &del: 0;
      return 0;

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Dimov
Sent: Saturday, December 15, 2007 11:27 AM
To: boost_at_[hidden]
Subject: Re: [boost] Boost for new compiler

Eames, Andrew:


> I have successfully got shared_ptr and shared_array to work but I
> to make 3 fairly trivial changes to the code to get it to compile.
> boosters interested in folding these changes back into the main source
> in the interests of making boost more portable or am I on my own here
> since I am working with an unsupported compiler? I can post the
> I ran into if anyone is interested.

If you post the changes you had to do, I'll consider incorporating them
the main source.

Unsubscribe & other changes:

NOTE: This message was trained as non-spam.  If this is wrong,
please correct the training as soon as possible.
Teach CanIt if this mail (ID 10387259) is spam:
Not spam:
Forget vote:

Boost list run by bdawes at, gregod at, cpdaniel at, john at