Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85575 - trunk/boost/smart_ptr
From: andrey.semashev_at_[hidden]
Date: 2013-09-05 13:23:33


Author: andysem
Date: 2013-09-05 13:23:33 EDT (Thu, 05 Sep 2013)
New Revision: 85575
URL: http://svn.boost.org/trac/boost/changeset/85575

Log:
Disabled bogus MSVC warning.

Text files modified:
   trunk/boost/smart_ptr/intrusive_ref_counter.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/smart_ptr/intrusive_ref_counter.hpp
==============================================================================
--- trunk/boost/smart_ptr/intrusive_ref_counter.hpp Thu Sep 5 13:01:50 2013 (r85574)
+++ trunk/boost/smart_ptr/intrusive_ref_counter.hpp 2013-09-05 13:23:33 EDT (Thu, 05 Sep 2013) (r85575)
@@ -22,6 +22,14 @@
 #pragma once
 #endif
 
+#if defined(_MSC_VER)
+#pragma warning(push)
+// This is a bogus MSVC warning, which is flagged by friend declarations of intrusive_ptr_add_ref and intrusive_ptr_release in intrusive_ref_counter:
+// 'name' : the inline specifier cannot be used when a friend declaration refers to a specialization of a function template
+// Note that there is no inline specifier in the declarations.
+#pragma warning(disable: 4396)
+#endif
+
 namespace boost {
 
 namespace sp_adl_block {
@@ -172,4 +180,8 @@
 
 } // namespace boost
 
+#if defined(_MSC_VER)
+#pragma warning(pop)
+#endif
+
 #endif // BOOST_SMART_PTR_INTRUSIVE_REF_COUNTER_HPP_INCLUDED_


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk