Use pragmas to suppress a Visual C++ warning.

[SVN r49756]
This commit is contained in:
Daniel James
2008-11-14 16:11:16 +00:00
parent e2d1d75955
commit b75f06d935
2 changed files with 26 additions and 0 deletions

View File

@ -21,6 +21,15 @@
#include <boost/unordered/detail/move.hpp>
#endif
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC >= 1400
#pragma warning(disable:4396) //the inline specifier cannot be used when a
// friend declaration refers to a specialization
// of a function template
#endif
#endif
namespace boost
{
template <class Key, class T, class Hash, class Pred, class Alloc>
@ -785,4 +794,8 @@ namespace boost
} // namespace boost
#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif
#endif // BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED

View File

@ -21,6 +21,15 @@
#include <boost/unordered/detail/move.hpp>
#endif
#if defined(BOOST_MSVC)
#pragma warning(push)
#if BOOST_MSVC >= 1400
#pragma warning(disable:4396) //the inline specifier cannot be used when a
// friend declaration refers to a specialization
// of a function template
#endif
#endif
namespace boost
{
template <class Value, class Hash, class Pred, class Alloc>
@ -742,4 +751,8 @@ namespace boost
} // namespace boost
#if defined(BOOST_MSVC)
#pragma warning(pop)
#endif
#endif // BOOST_UNORDERED_UNORDERED_SET_HPP_INCLUDED