mirror of
https://github.com/boostorg/thread.git
synced 2026-02-13 12:52:11 +00:00
disable MSVC DLL warnings for derivation from noncopyable
[SVN r35281]
This commit is contained in:
@@ -21,6 +21,13 @@ namespace boost {
|
||||
|
||||
struct xtime;
|
||||
|
||||
// disable warnings about non dll import
|
||||
// see: http://www.boost.org/more/separate_compilation.html#dlls
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4251 4231 4660 4275)
|
||||
#endif
|
||||
|
||||
namespace detail {
|
||||
|
||||
class BOOST_THREAD_DECL condition_impl : private noncopyable
|
||||
@@ -140,6 +147,10 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_CONDITION_RS06040707_HPP
|
||||
|
||||
@@ -20,6 +20,13 @@ namespace boost {
|
||||
|
||||
struct xtime;
|
||||
|
||||
// disable warnings about non dll import
|
||||
// see: http://www.boost.org/more/separate_compilation.html#dlls
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4251 4231 4660 4275)
|
||||
#endif
|
||||
|
||||
class BOOST_THREAD_DECL mutex
|
||||
: private noncopyable
|
||||
{
|
||||
@@ -100,6 +107,10 @@ private:
|
||||
bool m_locked;
|
||||
};
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_MUTEX_RS06040705_HPP
|
||||
|
||||
@@ -22,6 +22,13 @@ namespace boost {
|
||||
|
||||
struct xtime;
|
||||
|
||||
// disable warnings about non dll import
|
||||
// see: http://www.boost.org/more/separate_compilation.html#dlls
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable: 4251 4231 4660 4275)
|
||||
#endif
|
||||
|
||||
class BOOST_THREAD_DECL thread : private noncopyable
|
||||
{
|
||||
public:
|
||||
@@ -59,6 +66,10 @@ private:
|
||||
mutex m_mutex;
|
||||
};
|
||||
|
||||
#ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
#endif
|
||||
|
||||
} // namespace boost
|
||||
|
||||
#endif // BOOST_THREAD_RS06040701_HPP
|
||||
|
||||
Reference in New Issue
Block a user