Boost C++ Libraries: Ticket #974: spurious warning suppression code useful in shared_ptr.hpp https://svn.boost.org/trac10/ticket/974 <p> #ifdef _MANAGED <em> C4793) </em> 'vararg' : causes native code generation for function 'void boost::detail::sp_enable_shared_from_this(const boost::detail::shared_count &amp;,...)' <em> Avoid using vararg ... with a dummy. </em></p> <p> struct sp_any_pointer { </p> <blockquote> <p> template&lt;class T&gt; sp_any_pointer( T* ) {} </p> </blockquote> <p> }; </p> <p> inline void sp_enable_shared_from_this( shared_count const &amp; /*pn*/, sp_any_pointer, sp_any_pointer ) { } </p> <p> #else <em> NOT managed. </em></p> <p> #ifdef sgi <em> Turn off: the last argument of the varargs function "sp_enable_shared_from_this" is unnamed # pragma set woff 3506 #endif </em></p> <p> inline void sp_enable_shared_from_this( shared_count const &amp; /*pn*/, ... ) { } </p> <p> #ifdef sgi # pragma reset woff 3506 #endif </p> <p> #endif <em> _MANAGED </em></p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/974 Trac 1.4.3 Paul A. Bristow Mon, 21 May 2007 09:12:15 GMT attachment set https://svn.boost.org/trac10/ticket/974 https://svn.boost.org/trac10/ticket/974 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">shared_ptr.hpp</span> </li> </ul> <p> shared_ptr including warning supression </p> Ticket René Rivera Mon, 21 May 2007 15:44:52 GMT component changed https://svn.boost.org/trac10/ticket/974#comment:1 https://svn.boost.org/trac10/ticket/974#comment:1 <ul> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> Ticket Paul A. Bristow Wed, 23 May 2007 09:45:21 GMT <link>https://svn.boost.org/trac10/ticket/974#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/974#comment:2</guid> <description> <p> Previous attached file was wrong. Blush :-( </p> <p> Paul </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Peter Dimov</dc:creator> <pubDate>Fri, 06 Jul 2007 21:21:33 GMT</pubDate> <title>status changed; owner set https://svn.boost.org/trac10/ticket/974#comment:3 https://svn.boost.org/trac10/ticket/974#comment:3 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket Peter Dimov Sat, 07 Jul 2007 17:26:12 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/974#comment:4 https://svn.boost.org/trac10/ticket/974#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> This is already fixed in CVS HEAD. </p> Ticket