
28 Mar
2010
28 Mar
'10
2:44 p.m.
AMDG 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 https://svn.boost.org/trac/boost/ticket/861 solves the problem. In Christ, Steven Watanabe