
15 Dec
2006
15 Dec
'06
4:31 a.m.
"Gennadiy Rozental" <gennadiy.rozental@thomson.com> writes:
This is not clear cut. I do not see in theory why any boost::variant based algorithm couldn't be optimized to almost the same code (module type switching). On the other hand excessive usage of tuples will cause appropriate code bloat, eventually leading to code slow down.
Not clear cut at all. When operating on a sequence where all the types are different, the version with variant will be both slower and larger. -- Dave Abrahams Boost Consulting www.boost-consulting.com