Joel Falcou wrote:
Eric Niebler a écrit :
joel falcou wrote:
OK.
Last question. I changed my make_expr to use domain_of and it worked
nice for the base case.
I'm confused. You *were* using domain_of and I told you not to. ???
No, I wasn't and you did ;)
Still confused.
<snip>
Here is a small test case :
http://codepad.org/x1U86VS9
Hey, that codepad thing is pretty cool. OK, I see the following in your
simd_context class:
template
struct result
{
// NOTE! I added the following assertion:
BOOST_MPL_ASSERT_NOT((boost::is_reference<X>));
typedef typename SimdDesc::type type;
};
template
struct result
{
typedef typename X::type type;
};
The MPL assertion I added fired, and the type of X was "const
simd_value> &". You probably mean for terminals of that
type to be handled by the following specialization, but its not because
of the cv qualifier and the reference.
--
Eric Niebler
BoostPro Computing
http://www.boostpro.com