Boost logo

Boost Users :

Subject: Re: [Boost-users] phoenix function problem
From: Olaf Peter (ope-devel_at_[hidden])
Date: 2010-04-24 13:28:01


> Olaf, I recommended writing the code above (see the operator() is
> *not* a template. Why do you still insist on writing it as a
> template? Here is your problem:
>
> template <typename T>
> vector_type operator()( const vector_type& v, rlc ) const
> {
> return fusion::as_nview<0, 1, 2>( v );
> }
>
> template <typename T>
> vector_type operator()( const vector_type& v, lcr ) const
> {
> return fusion::as_nview<2, 0, 1>( v );
> }
>
> because you don't have any arguments with T.

Damn, you are in right. It was to late in the evening. Sorry for noise
and thanks,
Olaf


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net