|
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 :)
Andrew
-----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
Hello,
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).
Regards,
Peter
_______________________________________________
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 10405522) is spam: Spam: http://mail-gw.cognex.com/canit/b.php?c=s&i=10405522&m=a1734039d3ba Not spam: http://mail-gw.cognex.com/canit/b.php?c=n&i=10405522&m=a1734039d3ba Forget vote: http://mail-gw.cognex.com/canit/b.php?c=f&i=10405522&m=a1734039d3ba ------------------------------------------------------ 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