Skip to content

Commit

Permalink
Update for MSVC-14 CTP14.
Browse files Browse the repository at this point in the history
Fix <type_traits> tests to check for the correct names!
  • Loading branch information
jzmaddock committed Oct 19, 2014
1 parent 35360b6 commit d9026f1
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
12 changes: 4 additions & 8 deletions include/boost/config/compiler/visualc.hpp
Expand Up @@ -182,6 +182,8 @@
# define BOOST_NO_CXX11_USER_DEFINED_LITERALS
# define BOOST_NO_CXX11_ALIGNAS
# define BOOST_NO_CXX11_INLINE_NAMESPACES
# define BOOST_NO_CXX14_DECLTYPE_AUTO
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
#endif

// C++11 features not supported by any versions
Expand All @@ -202,18 +204,12 @@
#if !defined(__cpp_constexpr) || (__cpp_constexpr < 201304)
# define BOOST_NO_CXX14_CONSTEXPR
#endif
#if !defined(__cpp_decltype_auto) || (__cpp_decltype_auto < 201304)
# define BOOST_NO_CXX14_DECLTYPE_AUTO
#endif
#if (__cplusplus < 201304) // There's no SD6 check for this....
# define BOOST_NO_CXX14_DIGIT_SEPARATOR
#endif
#if !defined(__cpp_generic_lambdas) || (__cpp_generic_lambdas < 201304)
# define BOOST_NO_CXX14_GENERIC_LAMBDAS
#endif
#if !defined(__cpp_init_captures) || (__cpp_init_captures < 201304)
# define BOOST_NO_CXX14_INITIALIZED_LAMBDA_CAPTURES
#endif
#if !defined(__cpp_return_type_deduction) || (__cpp_return_type_deduction < 201304)
# define BOOST_NO_CXX14_RETURN_TYPE_DEDUCTION
#endif
Expand Down Expand Up @@ -296,8 +292,8 @@
#endif

//
// last known and checked version is 19.00.21901.1 (VC14 CTP3):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022013)
// last known and checked version is 19.00.22129 (VC14 CTP4):
#if (_MSC_VER > 1800 && _MSC_FULL_VER > 190022129)
# if defined(BOOST_ASSERT_CONFIG)
# error "Unknown compiler version - please run the configure tests and report the results"
# else
Expand Down
33 changes: 17 additions & 16 deletions test/boost_no_cxx11_hdr_type_traits.ipp
Expand Up @@ -51,22 +51,23 @@ int test()
using std::is_abstract;
using std::is_constructible;
using std::is_nothrow_constructible;
using std::has_default_constructor;
using std::has_copy_constructor;
using std::has_copy_assign;
using std::has_move_constructor;
using std::has_move_assign;
using std::has_trivial_default_constructor;
using std::has_trivial_copy_constructor;
using std::has_trivial_move_constructor;
using std::has_trivial_copy_assign;
using std::has_trivial_move_assign;
using std::has_trivial_destructor;
using std::has_nothrow_default_constructor;
using std::has_nothrow_copy_constructor;
using std::has_nothrow_move_constructor;
using std::has_nothrow_copy_assign;
using std::has_nothrow_move_assign;
using std::is_default_constructible;
using std::is_copy_constructible;
using std::is_copy_assignable;
using std::is_move_constructible;
using std::is_move_assignable;
using std::is_destructible;
using std::is_trivially_default_constructible;
using std::is_trivially_copy_constructible;
using std::is_trivially_move_constructible;
using std::is_trivially_copy_assignable;
using std::is_trivially_move_assignable;
using std::is_trivially_destructible;
using std::is_nothrow_default_constructible;
using std::is_nothrow_copy_constructible;
using std::is_nothrow_move_constructible;
using std::is_nothrow_copy_assignable;
using std::is_nothrow_move_assignable;
using std::has_virtual_destructor;
using std::is_signed;
using std::is_unsigned;
Expand Down

0 comments on commit d9026f1

Please sign in to comment.