
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@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Peter Bindels Sent: Tuesday, December 18, 2007 10:39 AM To: boost@lists.boost.org Subject: Re: [boost] Boost for new compiler Hello, On 18/12/2007, Eames, Andrew <andrew@cognex.com> 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