|
Boost Users : |
Subject: [Boost-users] [mpl] Where is at with default
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2009-10-16 02:16:13
I can't seem to find the `at` metafunction with a default value for
associative sequences. What should I include to use such metafunction
with a mpl::map ? Including <boost/mpl/at.hpp> is not enough, I get a
'too many templates arguments' when trying to do:
typename boost::mpl::at< State, R, L >::type
which I ended up doing like this:
typename boost::mpl::eval_if<
typename boost::mpl::has_key< State, R >::type
, boost::mpl::at< State, R >
, boost::mpl::identity< L >
>::type
Thank you.-
Agustín K-ballo Bergé.-
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