forked from boostorg/mpl
Merged revisions 55146 via svnmerge from
https://svn.boost.org/svn/boost/trunk ........ r55146 | eric_niebler | 2009-07-24 10:22:50 -0700 (Fri, 24 Jul 2009) | 1 line fix bug with signed char ........ [SVN r55206]
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
|
||||
#include <boost/mpl/string.hpp>
|
||||
|
||||
#include <boost/mpl/at.hpp>
|
||||
#include <boost/mpl/back.hpp>
|
||||
#include <boost/mpl/empty.hpp>
|
||||
#include <boost/mpl/front.hpp>
|
||||
@@ -471,5 +472,45 @@ int main()
|
||||
));
|
||||
}
|
||||
|
||||
{
|
||||
BOOST_TEST((
|
||||
mpl::at_c<
|
||||
mpl::string<'\x7f'>
|
||||
, 0
|
||||
>::type::value == (char)0x7f
|
||||
));
|
||||
|
||||
BOOST_TEST((
|
||||
mpl::at_c<
|
||||
mpl::string<'\x80'>
|
||||
, 0
|
||||
>::type::value == (char)0x80
|
||||
));
|
||||
|
||||
BOOST_TEST((
|
||||
mpl::at_c<
|
||||
mpl::string<
|
||||
mpl::at_c<
|
||||
mpl::string<'\x7f'>
|
||||
, 0
|
||||
>::type::value
|
||||
>
|
||||
, 0
|
||||
>::type::value == (char)0x7f
|
||||
));
|
||||
|
||||
BOOST_TEST((
|
||||
mpl::at_c<
|
||||
mpl::string<
|
||||
mpl::at_c<
|
||||
mpl::string<'\x80'>
|
||||
, 0
|
||||
>::type::value
|
||||
>
|
||||
, 0
|
||||
>::type::value == (char)0x80
|
||||
));
|
||||
}
|
||||
|
||||
return boost::report_errors();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user