Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] learning proto slowly, a small (math)complex library
From: Joel Falcou (joel.falcou_at_[hidden])
Date: 2011-01-10 16:51:00


Oh and you make a small oversight :

template<class K, class V, class C, class A>
        operator std::complex<K>() const{
                std::complex<K> m(proto::value( proto::child_c<1>(*this) ),
proto::value( proto::child_c<1>(proto::child_c<2>(*this)) ) );
                return m;
        }

should be

template<class K>
        operator std::complex<K>() const{
                std::complex<K> m(proto::value( proto::child_c<1>(*this) ),
proto::value( proto::child_c<1>(proto::child_c<2>(*this)) ) );
                return m;
        }

you dont need the C,V,A parameters


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