mirror of
https://github.com/boostorg/type_traits.git
synced 2025-07-29 20:17:21 +02:00
[inspection report] remove tabs and non-ASCII chars, add newline at EOF, fix copyright
This commit is contained in:
@ -46,7 +46,7 @@ template<> struct arithmetic_type<3>
|
||||
#endif
|
||||
|
||||
// There are five standard signed integer types:
|
||||
// “signed char”, “short int”, “int”, “long int”, and “long long int”.
|
||||
// "signed char", "short int", "int", "long int", and "long long int".
|
||||
|
||||
template<> struct arithmetic_type<4>
|
||||
{
|
||||
@ -79,8 +79,8 @@ template<> struct arithmetic_type<8>
|
||||
};
|
||||
|
||||
// For each of the standard signed integer types, there exists a corresponding
|
||||
// (but different) standard unsigned integer type: “unsigned char”, “unsigned short int”,
|
||||
// “unsigned int”, “unsigned long int”, and “unsigned long long int”
|
||||
// (but different) standard unsigned integer type: "unsigned char", "unsigned short int",
|
||||
// "unsigned int", "unsigned long int", and "unsigned long long int"
|
||||
|
||||
template<> struct arithmetic_type<9>
|
||||
{
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
// (C) John Maddock 2010.
|
||||
// (C) Copyright John Maddock 2010.
|
||||
// Use, modification and distribution are subject to the Boost Software License,
|
||||
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
||||
// http://www.boost.org/LICENSE_1_0.txt).
|
||||
|
@ -90,18 +90,18 @@ TT_TEST_BEGIN(common_type)
|
||||
#ifndef __SUNPRO_CC
|
||||
assignation_2<C1C2, C1>();
|
||||
typedef tt::common_type<C1C2&, C1&>::type T1;
|
||||
BOOST_CHECK_TYPE(T1, C1C2);
|
||||
BOOST_CHECK_TYPE(T1, C1C2);
|
||||
typedef tt::common_type<C3*, C2*>::type T2;
|
||||
BOOST_CHECK_TYPE(T2, C2*);
|
||||
BOOST_CHECK_TYPE(T2, C2*);
|
||||
typedef tt::common_type<int*, int const*>::type T3;
|
||||
BOOST_CHECK_TYPE(T3, int const*);
|
||||
BOOST_CHECK_TYPE(T3, int const*);
|
||||
#if defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
|
||||
// fails if BOOST_COMMON_TYPE_DONT_USE_TYPEOF:
|
||||
typedef tt::common_type<int volatile*, int const*>::type T4;
|
||||
BOOST_CHECK_TYPE(T4, int const volatile*);
|
||||
BOOST_CHECK_TYPE(T4, int const volatile*);
|
||||
#endif
|
||||
typedef tt::common_type<int*, int volatile*>::type T5;
|
||||
BOOST_CHECK_TYPE(T5, int volatile*);
|
||||
BOOST_CHECK_TYPE(T5, int volatile*);
|
||||
|
||||
assignation_2<C1, C1C2>();
|
||||
assignation_2<C1C2, C2>();
|
||||
|
@ -87,18 +87,18 @@ TT_TEST_BEGIN(common_type)
|
||||
{
|
||||
assignation_2<C1C2, C1>();
|
||||
typedef tt::common_type<C1C2&, C1&>::type T1;
|
||||
BOOST_CHECK_TYPE(T1, C1C2);
|
||||
BOOST_CHECK_TYPE(T1, C1C2);
|
||||
typedef tt::common_type<C3*, C2*>::type T2;
|
||||
BOOST_CHECK_TYPE(T2, C2*);
|
||||
BOOST_CHECK_TYPE(T2, C2*);
|
||||
typedef tt::common_type<int*, int const*>::type T3;
|
||||
BOOST_CHECK_TYPE(T3, int const*);
|
||||
BOOST_CHECK_TYPE(T3, int const*);
|
||||
#if defined(BOOST_NO_CXX11_DECLTYPE) && !defined(BOOST_COMMON_TYPE_DONT_USE_TYPEOF)
|
||||
// fails if BOOST_COMMON_TYPE_DONT_USE_TYPEOF:
|
||||
typedef tt::common_type<int volatile*, int const*>::type T4;
|
||||
BOOST_CHECK_TYPE(T4, int const volatile*);
|
||||
BOOST_CHECK_TYPE(T4, int const volatile*);
|
||||
#endif
|
||||
typedef tt::common_type<int*, int volatile*>::type T5;
|
||||
BOOST_CHECK_TYPE(T5, int volatile*);
|
||||
BOOST_CHECK_TYPE(T5, int volatile*);
|
||||
|
||||
assignation_2<C1, C1C2>();
|
||||
assignation_2<C1C2, C2>();
|
||||
|
@ -29,8 +29,8 @@ struct derived2 : public middle2 { };
|
||||
template<typename T>
|
||||
struct test_bug_4530
|
||||
{
|
||||
template<typename A>
|
||||
test_bug_4530(A&&, typename boost::enable_if< ::tt::is_convertible<A&&, T> >::type* =0);
|
||||
template<typename A>
|
||||
test_bug_4530(A&&, typename boost::enable_if< ::tt::is_convertible<A&&, T> >::type* =0);
|
||||
};
|
||||
|
||||
struct A4530
|
||||
|
@ -27,4 +27,4 @@ int dispatch_test()
|
||||
int main()
|
||||
{
|
||||
return (dispatch_test<int>() == 1) && (dispatch_test<void>() == 0) ? 0 : 1;
|
||||
}
|
||||
}
|
||||
|
@ -22,4 +22,4 @@ if_test<double>::type t2 = 0;
|
||||
int main()
|
||||
{
|
||||
return (int)(t1 + t2);
|
||||
}
|
||||
}
|
||||
|
@ -27,4 +27,4 @@ int main()
|
||||
|
||||
lambda_test<list_type>::type i = 0;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user