Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2007-03-20 12:18:44


Yep, I knew that, even when my code wasn't showing it. ;-) It still
doesn't compile an my end and I have no idea why. I have removed all
using namespace directives and still no luck.

#include <boost/fusion/sequence.hpp>

int _tmain(int argc, _TCHAR* argv[])
{
   typedef boost::fusion::map< boost::fusion::pair<int, char>
                             , boost::fusion::pair<char, char>
                             , boost::fusion::pair<double, char>
> mymap;

   BOOST_MPL_ASSERT(( boost::is_same<
boost::fusion::result_of::at_key<mymap, int>::type, char&>));

        return 0;
}

What compiler are you using?

Christian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net