Ticket #1792: concept_check_warning.patch

File concept_check_warning.patch, 750 bytes (added by Stephan, 15 years ago)
  • boost/concept_check.hpp

     
    169169    TT b;
    170170  };
    171171
     172#if (defined _MSC_VER)
     173# pragma warning( push )
     174# pragma warning( disable : 4510 ) // default constructor could not be generated
     175# pragma warning( disable : 4610 ) // object 'class' can never be instantiated - user-defined constructor required
     176#endif
    172177  // The SGI STL version of Assignable requires copy constructor and operator=
    173178  BOOST_concept(SGIAssignable,(TT))
    174179  {
     
    190195    }
    191196    TT a;
    192197  };
     198#if (defined _MSC_VER)
     199# pragma warning( pop )
     200#endif
    193201
    194202  BOOST_concept(Convertible,(X)(Y))
    195203  {