mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 11:27:15 +02:00
Use pragmas to suppress a Visual C++ warning.
[SVN r49756]
This commit is contained in:
@ -21,6 +21,15 @@
|
|||||||
#include <boost/unordered/detail/move.hpp>
|
#include <boost/unordered/detail/move.hpp>
|
||||||
#endif
|
#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
|
namespace boost
|
||||||
{
|
{
|
||||||
template <class Key, class T, class Hash, class Pred, class Alloc>
|
template <class Key, class T, class Hash, class Pred, class Alloc>
|
||||||
@ -785,4 +794,8 @@ namespace boost
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
#if defined(BOOST_MSVC)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
|
#endif // BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
|
||||||
|
@ -21,6 +21,15 @@
|
|||||||
#include <boost/unordered/detail/move.hpp>
|
#include <boost/unordered/detail/move.hpp>
|
||||||
#endif
|
#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
|
namespace boost
|
||||||
{
|
{
|
||||||
template <class Value, class Hash, class Pred, class Alloc>
|
template <class Value, class Hash, class Pred, class Alloc>
|
||||||
@ -742,4 +751,8 @@ namespace boost
|
|||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
#if defined(BOOST_MSVC)
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_UNORDERED_UNORDERED_SET_HPP_INCLUDED
|
#endif // BOOST_UNORDERED_UNORDERED_SET_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user