From e6ba4cc17c2ae35655d1d3bcb2ecfaac499c353c Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Mon, 24 Aug 2009 04:17:30 +0000 Subject: [PATCH] MPL: merge test for #2042/#3298 from the trunk (thanks to Steven Watanabe for the fix!) [SVN r55752] --- test/map.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/map.cpp b/test/map.cpp index aaa44b8..17ad99d 100644 --- a/test/map.cpp +++ b/test/map.cpp @@ -194,3 +194,26 @@ MPL_TEST_CASE() test(); test(); } + +MPL_TEST_CASE() +{ + typedef mpl::erase_key< + mpl::map< + mpl::pair + , mpl::pair + > + , char + >::type int_to_float_map; + + typedef mpl::insert< + int_to_float_map + , mpl::pair + >::type with_char_too; + + BOOST_MPL_ASSERT(( + boost::is_same< + mpl::at::type + , long + > + )); +}