mirror of
https://github.com/boostorg/mpl.git
synced 2026-01-19 16:32:11 +00:00
30 lines
711 B
C++
30 lines
711 B
C++
|
|
// Copyright Eric Niebler 2008
|
|
//
|
|
// Distributed under 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)
|
|
//
|
|
// See http://www.boost.org/libs/mpl for documentation.
|
|
|
|
// $Id: char.cpp 49240 2009-04-01 09:21:07Z eric_niebler $
|
|
// $Date: 2009-04-01 02:21:07 -0700 (Wed, 1 Apr 2009) $
|
|
// $Revision: 49240 $
|
|
|
|
#include <boost/mpl/char.hpp>
|
|
#include <boost/preprocessor/repeat.hpp>
|
|
#include <climits>
|
|
|
|
#include "integral_wrapper_test.hpp"
|
|
|
|
|
|
MPL_TEST_CASE()
|
|
{
|
|
#if CHAR_MAX > 0
|
|
# define WRAPPER(T, i) char_<static_cast<char>(i)>
|
|
#else
|
|
# define WRAPPER(T, i) char_<i>
|
|
#endif
|
|
BOOST_PP_REPEAT(10, INTEGRAL_WRAPPER_TEST, char)
|
|
}
|