diff --git a/STL_Extension/include/CGAL/Handle_for.h b/STL_Extension/include/CGAL/Handle_for.h index 2126ba9bc50..ca17ec60ad8 100644 --- a/STL_Extension/include/CGAL/Handle_for.h +++ b/STL_Extension/include/CGAL/Handle_for.h @@ -27,6 +27,10 @@ #include #include +#if defined(BOOST_MSVC) +# pragma warning(push) +# pragma warning(disable:4345) // Avoid warning http://msdn.microsoft.com/en-us/library/wewb47ee(VS.80).aspx +#endif CGAL_BEGIN_NAMESPACE template @@ -51,7 +55,7 @@ public: Handle_for() : ptr_(allocator.allocate(1)) { - new (&(ptr_->t)) T(); + new (&(ptr_->t)) T(); // we get the warning here ptr_->count = 1; } @@ -305,4 +309,8 @@ get(const T &t) CGAL_END_NAMESPACE +#if defined(BOOST_MSVC) +# pragma warning(pop) +#endif + #endif // CGAL_HANDLE_FOR_H