
3 Jan
2008
3 Jan
'08
2:42 p.m.
The common idiom is: for (; i != boost::end (vector); ++i) ... The compiler had damn well better realize that boost::end is a constant function that can be lifted from the loop, or performance can be severely impacted. Does anyone have any experience with this? Is there a portable way to give hints to the compiler? Should boost provide such a facility?