Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-11-16 18:47:19


<Oliver.Kowalke_at_[hidden]> writes:

> Hi,
> how can I store more than 20 entries in mpl::map?
> regards,
> Oliver

Use the numbered forms:

    #include <boost/mpl/map/map30.hpp>

    typedef boost::mpl::map22<
         boost::mpl::pair<int[1], int[1]>
       , boost::mpl::pair<int[2], int[2]>
       ...
       , boost::mpl::pair<int[22], int[22]>
> m;

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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