|
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
Andrew
1)
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
2)
In shared_ptr.hpp
//My compiler doesn't support inline functions with varargs
Replace
<<inline void sp_enable_shared_from_this( shared_count const & /*pn*/,
... )
<<{
<<}
With
>>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,
... )
>>{
>>}
3)
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;
#else
assert(0);
return 0;
#endif
}
-----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
needed
> to make 3 fairly trivial changes to the code to get it to compile.
Are
> 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
problems
> I ran into if anyone is interested.
If you post the changes you had to do, I'll consider incorporating them
into
the main source.
_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost
-- BEGIN-ANTISPAM-VOTING-LINKS ------------------------------------------------------ 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: Spam: http://mail-gw.cognex.com/canit/b.php?c=s&i=10387259&m=cf9697a07d34 Not spam: http://mail-gw.cognex.com/canit/b.php?c=n&i=10387259&m=cf9697a07d34 Forget vote: http://mail-gw.cognex.com/canit/b.php?c=f&i=10387259&m=cf9697a07d34 ------------------------------------------------------ END-ANTISPAM-VOTING-LINKS
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk