mirror of
https://github.com/boostorg/concept_check.git
synced 2025-07-29 20:17:36 +02:00
@ -6,12 +6,17 @@
|
||||
|
||||
# include <boost/preprocessor/cat.hpp>
|
||||
# include <boost/concept/detail/backward_compatibility.hpp>
|
||||
# include <boost/config.hpp>
|
||||
|
||||
# ifdef BOOST_OLD_CONCEPT_SUPPORT
|
||||
# include <boost/concept/detail/has_constraints.hpp>
|
||||
# include <boost/mpl/if.hpp>
|
||||
# endif
|
||||
|
||||
# ifdef BOOST_MSVC
|
||||
# pragma warning(push)
|
||||
# pragma warning(disable:4100)
|
||||
# endif
|
||||
|
||||
namespace boost { namespace concepts {
|
||||
|
||||
@ -111,4 +116,8 @@ enum \
|
||||
# endif
|
||||
}}
|
||||
|
||||
# ifdef BOOST_MSVC
|
||||
# pragma warning(pop)
|
||||
# endif
|
||||
|
||||
#endif // BOOST_CONCEPT_CHECK_MSVC_DWA2006429_HPP
|
||||
|
@ -32,6 +32,12 @@
|
||||
# include <boost/concept/usage.hpp>
|
||||
# include <boost/concept/detail/concept_def.hpp>
|
||||
|
||||
#if (defined _MSC_VER)
|
||||
# pragma warning( push )
|
||||
# pragma warning( disable : 4510 ) // default constructor could not be generated
|
||||
# pragma warning( disable : 4610 ) // object 'class' can never be instantiated - user-defined constructor required
|
||||
#endif
|
||||
|
||||
namespace boost
|
||||
{
|
||||
|
||||
@ -175,11 +181,6 @@ namespace boost
|
||||
TT b;
|
||||
};
|
||||
|
||||
#if (defined _MSC_VER)
|
||||
# pragma warning( push )
|
||||
# pragma warning( disable : 4510 ) // default constructor could not be generated
|
||||
# pragma warning( disable : 4610 ) // object 'class' can never be instantiated - user-defined constructor required
|
||||
#endif
|
||||
// The SGI STL version of Assignable requires copy constructor and operator=
|
||||
BOOST_concept(SGIAssignable,(TT))
|
||||
{
|
||||
@ -202,9 +203,6 @@ namespace boost
|
||||
TT a;
|
||||
TT b;
|
||||
};
|
||||
#if (defined _MSC_VER)
|
||||
# pragma warning( pop )
|
||||
#endif
|
||||
|
||||
BOOST_concept(Convertible,(X)(Y))
|
||||
{
|
||||
@ -1077,6 +1075,10 @@ namespace boost
|
||||
};
|
||||
} // namespace boost
|
||||
|
||||
#if (defined _MSC_VER)
|
||||
# pragma warning( pop )
|
||||
#endif
|
||||
|
||||
# include <boost/concept/detail/concept_undef.hpp>
|
||||
|
||||
#endif // BOOST_CONCEPT_CHECKS_HPP
|
||||
|
Reference in New Issue
Block a user