Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r55752 - branches/release/libs/mpl/test
From: agurtovoy_at_[hidden]
Date: 2009-08-24 00:17:30


Author: agurtovoy
Date: 2009-08-24 00:17:30 EDT (Mon, 24 Aug 2009)
New Revision: 55752
URL: http://svn.boost.org/trac/boost/changeset/55752

Log:
MPL: merge test for #2042/#3298 from the trunk (thanks to Steven Watanabe for the fix!)
Text files modified:
   branches/release/libs/mpl/test/map.cpp | 23 +++++++++++++++++++++++
   1 files changed, 23 insertions(+), 0 deletions(-)

Modified: branches/release/libs/mpl/test/map.cpp
==============================================================================
--- branches/release/libs/mpl/test/map.cpp (original)
+++ branches/release/libs/mpl/test/map.cpp 2009-08-24 00:17:30 EDT (Mon, 24 Aug 2009)
@@ -194,3 +194,26 @@
     test<mymap>();
     test<mymap::type>();
 }
+
+MPL_TEST_CASE()
+{
+ typedef mpl::erase_key<
+ mpl::map<
+ mpl::pair<char, double>
+ , mpl::pair<int, float>
+ >
+ , char
+ >::type int_to_float_map;
+
+ typedef mpl::insert<
+ int_to_float_map
+ , mpl::pair<char, long>
+ >::type with_char_too;
+
+ BOOST_MPL_ASSERT((
+ boost::is_same<
+ mpl::at<with_char_too, char>::type
+ , long
+ >
+ ));
+}


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk