Boost C++ Libraries: Ticket #6935: Noncopyable gives compiler warning when used in DLL interface https://svn.boost.org/trac10/ticket/6935 <p> Inheritance from boost::noncopyable in a DLL interface class with the Microsoft Visual C++ 2010 compiler gives a warning C4275: non dll-interface class 'boost::noncopyable_::noncopyable' used as base for dll-interface class. </p> <p> It would be great if there had been a straight-forward method for disabling this warning. One possibility could be to disable it in boost/config/user.hpp, but noncopyable.hpp does unfortunately not include this file. </p> <p> Could it be possible for noncopyable.hpp to either include boost/config/user.hpp (through config.hpp) or provide another means for disabling this warning? </p> <p> Thanks in advance, Fredrik Orderud </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6935 Trac 1.4.3 viboes Mon, 28 May 2012 17:13:56 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6935#comment:1 https://svn.boost.org/trac10/ticket/6935#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">No-Maintainer</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">utility</span> </li> </ul> Ticket mboard182@… Wed, 19 Sep 2012 18:27:30 GMT <link>https://svn.boost.org/trac10/ticket/6935#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6935#comment:2</guid> <description> <p> +1 - it is tough to get through the code review process with the #pragma warning disable ... I guess for now I will have to roll my own noncopyable </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Mateusz Loskot</dc:creator> <pubDate>Wed, 13 Mar 2013 11:20:17 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/6935#comment:3 https://svn.boost.org/trac10/ticket/6935#comment:3 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket viboes Sun, 14 Apr 2013 13:38:53 GMT owner, status changed https://svn.boost.org/trac10/ticket/6935#comment:4 https://svn.boost.org/trac10/ticket/6935#comment:4 <ul> <li><strong>owner</strong> changed from <span class="trac-author">No-Maintainer</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Please could you provide a patch? </p> Ticket Fredrik Orderud <forderud@…> Sun, 14 Apr 2013 18:14:42 GMT <link>https://svn.boost.org/trac10/ticket/6935#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6935#comment:5</guid> <description> <p> As or <a class="changeset" href="https://svn.boost.org/trac10/changeset/83833" title="Utility/noncopyable: Make use of =delete #6578.">r83833</a> boost::noncopyable now already include boost/config/user.hpp (via boost/config.hpp). This allows me to (globally) disable warning C4275 in boost/config/user.hpp, which is good enought for me. </p> <p> It's ok for me to resolve the issue. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 14 Apr 2013 20:44:10 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/6935#comment:6 https://svn.boost.org/trac10/ticket/6935#comment:6 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.54.0</span> </li> </ul> Ticket