
10 Jan
2011
10 Jan
'11
9:51 p.m.
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