Suppress msvc warnings.

Fixes: https://github.com/boostorg/regex/issues/80
This commit is contained in:
jzmaddock
2020-01-20 19:51:46 +00:00
parent 3b98dc901a
commit 2cd947f7c4
19 changed files with 150 additions and 28 deletions

View File

@ -57,6 +57,10 @@ private:
friend struct data;
};
#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable: 4702)
#endif
template <class Key, class Object>
boost::shared_ptr<Object const> object_cache<Key, Object>::get(const Key& k, size_type l_max_cache_size)
{
@ -80,6 +84,9 @@ boost::shared_ptr<Object const> object_cache<Key, Object>::get(const Key& k, siz
return do_get(k, l_max_cache_size);
#endif
}
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
template <class Key, class Object>
boost::shared_ptr<Object const> object_cache<Key, Object>::do_get(const Key& k, size_type l_max_cache_size)