wrap pragma for MSVC

This commit is contained in:
Oliver Kowalke
2014-03-03 17:51:45 +01:00
parent 86d114ee99
commit 4d7705aad8
3 changed files with 15 additions and 12 deletions

View File

@@ -15,10 +15,10 @@
#include <boost/coroutine/all.hpp>
#include <boost/intrusive_ptr.hpp>
# if defined(BOOST_MSVC)
#if defined(_MSC_VER)
# pragma warning(push)
# pragma warning(disable:4355)
# endif
#endif
struct branch;
struct leaf;
@@ -117,9 +117,8 @@ void enumerate_leafs( boost::coroutines::asymmetric_coroutine< leaf & >::push_ty
root->accept( v);
}
# if defined(BOOST_MSVC)
#if defined(_MSC_VER)
# pragma warning(pop)
# endif
#endif
#endif // TREE_H