forked from boostorg/mp11
Update comment in mp_valid.cpp
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
// Copyright 2015 Peter Dimov.
|
// Copyright 2015 Peter Dimov.
|
||||||
//
|
//
|
||||||
// Distributed under the Boost Software License, Version 1.0.
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
//
|
//
|
||||||
@@ -27,7 +27,7 @@ template<class T> using add_extents = T[];
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
using boost::mp11::mp_valid;
|
using boost::mp11::mp_valid;
|
||||||
using boost::mp11::mp_identity;
|
using boost::mp11::mp_identity;
|
||||||
|
|
||||||
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_identity>));
|
BOOST_TEST_TRAIT_FALSE((mp_valid<mp_identity>));
|
||||||
@@ -49,7 +49,7 @@ int main()
|
|||||||
BOOST_TEST_TRAIT_FALSE((mp_valid<add_pointer, void, void>));
|
BOOST_TEST_TRAIT_FALSE((mp_valid<add_pointer, void, void>));
|
||||||
|
|
||||||
#if !defined( BOOST_GCC ) || !BOOST_WORKAROUND( BOOST_GCC, < 70000 )
|
#if !defined( BOOST_GCC ) || !BOOST_WORKAROUND( BOOST_GCC, < 70000 )
|
||||||
// g++ up to at least 6.2 doesn't like add_reference for some reason or other
|
// g++ up to at least 6.3 doesn't like add_reference for some reason or other
|
||||||
BOOST_TEST_TRAIT_FALSE((mp_valid<add_reference>));
|
BOOST_TEST_TRAIT_FALSE((mp_valid<add_reference>));
|
||||||
#if !defined( BOOST_MSVC ) || !BOOST_WORKAROUND( BOOST_MSVC, <= 1800 )
|
#if !defined( BOOST_MSVC ) || !BOOST_WORKAROUND( BOOST_MSVC, <= 1800 )
|
||||||
// msvc-12.0 gives an internal error here
|
// msvc-12.0 gives an internal error here
|
||||||
|
Reference in New Issue
Block a user