disable warnings on extern before template instantiation

This commit is contained in:
Andreas Fabri 2011-10-11 07:42:43 +00:00
parent e59bf2d70d
commit d0b7e5d940
1 changed files with 11 additions and 0 deletions

View File

@ -133,10 +133,21 @@ MP_Float operator%(const MP_Float &a, const MP_Float &b);
// We have to export the instantiated vector class
// as it is used in inlined functions defined in the MP_Float.h file
//disable warnings on extern before template instantiation
#if defined(BOOST_MSVC)
# pragma warning(push)
# pragma warning (disable : 4231)
#endif
// short == MP_Float::limb
CGAL_EXPIMP_TEMPLATE template class CGAL_EXPORT std::allocator<short>;
CGAL_EXPIMP_TEMPLATE template class CGAL_EXPORT std::vector<short>;
#if defined(BOOST_MSVC)
# pragma warning(pop)
#endif
namespace CGAL { // Reopen the namespace CGAL
class CGAL_EXPORT MP_Float