Fix what looks like miscompilation with GCC 4.0 on OS X
This was SVN commit r8786.
This commit is contained in:
parent
4575c26616
commit
53b1447007
@ -1431,7 +1431,7 @@ static void list_add(VSrc* vs)
|
|||||||
* @param end_idx if not the default value of 0, stop before that entry.
|
* @param end_idx if not the default value of 0, stop before that entry.
|
||||||
*/
|
*/
|
||||||
template<class Func>
|
template<class Func>
|
||||||
static void list_foreach(const Func& callback, size_t skip = 0, size_t end_idx = 0)
|
static void list_foreach(Func callback, size_t skip = 0, size_t end_idx = 0)
|
||||||
{
|
{
|
||||||
const VSrcIt begin = vsrcs.begin() + skip;
|
const VSrcIt begin = vsrcs.begin() + skip;
|
||||||
const VSrcIt end = end_idx? begin+end_idx : vsrcs.end();
|
const VSrcIt end = end_idx? begin+end_idx : vsrcs.end();
|
||||||
|
Loading…
Reference in New Issue
Block a user