Boost logo

Boost :

Subject: Re: [boost] [mpl] has_function
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-28 10:44:31


Lorenzo Caminiti wrote:
> Unfortunately, it does not work (that is the first thing I tried...).
> If I change the `value` evaluation to:
> sizeof(check(make(), 0)) == sizeof(true_t); // line 31
> Then `check(...)` is always called and `value` is always false. I
> _think_ because in this context 0 is always interpreted as a `int`
> instead of a pointer to `C::contract_f_<0>`.

Okay. You might look at how
solves the problem.

In Christ,
Steven Watanabe

Boost list run by bdawes at, gregod at, cpdaniel at, john at