Subject: Re: [boost] [proto] _value doesn't enforce zero arity
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-04-08 21:41:57


AMDG

troy d. straszheim wrote:
> Here's a possible interface for a boost::mpl-ized version of Steven
> Watanabe's template_profiler:
>
> #define BOOST_MPL_ENABLE_TRACE
> #include "trace.hpp"
>
> //
> // classes peppered with traces
> //
> template <typename T>
> struct traceme
> {
> BOOST_MPL_TRACE(traceme<T>);
> };
>
> <snip>
>
> The trace.hpp is attached, tested on gccs 4.3 and 4.2.

Unfortunately this doesn't work well with function templates and
it's more difficult to generate automatically.

In Christ,
Steven Watanabe