Boost logo

Boost :

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

I'll file a bug report with the compiler vendor but whether it gets
fixed or not is not within my control :)

-----Original Message-----
From: boost-bounces_at_[hidden]
[mailto:boost-bounces_at_[hidden]] On Behalf Of Peter Bindels
Sent: Tuesday, December 18, 2007 10:39 AM
To: boost_at_[hidden]
Subject: Re: [boost] Boost for new compiler


On 18/12/2007, Eames, Andrew <andrew_at_[hidden]> wrote:
> 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,
> ... )
> >>{
> >>}

Inline should only be used as a hint, so this would qualify as a
compiler error, and a pretty odd one at that. Maybe it is a good idea
not to use the inline keyword in that compiler (possibly as harsh as
#define inline <nothing>) or to request that the compiler writers find
out what's causing this?

If that is not possible, you might be able to use SFINAE to remove
the overload or to make a define for removing it on compilers which
have that bug. My first inclination is to fix the compiler as it
handles a hint wrongly (and can just ignore it).

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 10405522) is spam:
Not spam:
Forget vote:

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