|
Boost Users : |
Subject: [Boost-users] [boost-users] Boost.Parameter: ArgumentPack - is type contained
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2011-03-29 15:22:04
Hi,
I'm trying to test an ArgumentPack for containment of a certain
parameter. Since an ArgumentPack is a valid MPL Sequence, I think
boost::mpl::contains should do the trick, but I fail to specify the
correct type. Consider the following
BOOST_PARAMETER_NAME(color);
template<class Opts>
void function_with_opts(const Opts &opts)
{
boost::mpl::contains<Opts, /* what type goes here if I'd like to
test if color is present in Opts ? */ > ));
}
Best regards,
Christoph
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