Jaap Suter [EMAIL PROTECTED] writes:
The error occurs on the line with the boost static constant.
Never mind that, I changed the code after I wrote the message.
Here's the code in hopefully better formatting.
Looks to me like this code has the exact same problem.
--
Dave Abrahams
Boost
Jaap Suter wrote:
So I tried to come up with the actual smallest example that
doesn't compile, even
with the LAMBDA_SUPPORT macro. It looks as follows:
template class T
struct meta_fun_1
{
typedef mpl::integral_c typename T::value_type, 0 type;
BOOST_MPL_AUX_LAMBDA_SUPPORT( 1,
David B. Held wrote:
For your own metafunctions, you have to intrude them a
little bit, but otherwise it works as well:
template typename T struct f
{
typedef T type;
BOOST_MPL_AUX_LAMBDA_SUPPORT(1,f,(T)) // here
};
[...]
I assume it's safe to
Mat Marcus wrote:
Scatter hierarchies can be achieved by using inherit_linearly together
with mpl::inherit. See the second example that Aleksey cited *is* an
example of a scatter hierarchy.
Forgive me, I hadn't realized this. That's just too cool! :) Thanks.
Regards,
Dirk Gerrits