Boost logo

Boost Users :

Subject: Re: [Boost-users] [proto] Question on grammar and operator overloading
From: joel (joel.falcou_at_[hidden])
Date: 2009-10-06 09:15:40


> Either way. You could even just use some other terminal type besides
boost::array. std::complex or std::pair would do.

Just dropping in as I have the exact same code lying around. Using
std::complex itself as the underlying type of complex terminal is
actually a good idea. When you'll have to do thing like cos( z ), you
may want to go cak to call std::cos on complex as on some platform it
uses some intrinsic that are faster than rewriting the cosinus by
yourself. Moreover std::complex isn't more than a pair of T anyway.

-- 
___________________________________________
Joel Falcou - Assistant Professor
PARALL Team - LRI - Universite Paris Sud XI
Tel : (+33)1 69 15 66 35

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