fix bug with signed char

[SVN r55146]
This commit is contained in:
Eric Niebler
2009-07-24 17:22:50 +00:00
parent e6024bc6f7
commit e1fa211c83
2 changed files with 72 additions and 27 deletions

View File

@@ -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();
}