mirror of
https://github.com/boostorg/mpl.git
synced 2026-01-26 00:42:20 +01:00
fix bug with signed char
[SVN r55146]
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