[Boost-bugs] [Boost C++ Libraries] #6935: Noncopyable gives compiler warning when used in DLL interface

Subject: [Boost-bugs] [Boost C++ Libraries] #6935: Noncopyable gives compiler warning when used in DLL interface
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-05-23 11:36:07


#6935: Noncopyable gives compiler warning when used in DLL interface
--------------------------------------------------+-------------------------
 Reporter: Fredrik Orderud <forderud@…> | Type: Feature Requests
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.49.0
 Severity: Problem | Keywords:
--------------------------------------------------+-------------------------
 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.

 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.

 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?

 Thanks in advance,
 Fredrik Orderud

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6935>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC