utilities.hpp: Use auto pointer instead of gcc extension typeof().

Fixes #1336.
db4
Doug Coleman 2015-06-05 10:20:32 -07:00
parent c74ccdd33e
commit f26c7fc66d
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ namespace factor {
// Poor mans range-based for loops.
#define FACTOR_FOR_EACH(iterable) \
for (typeof((iterable).begin()) iter = (iterable).begin(), \
for (auto iter = (iterable).begin(), \
_end = (iterable).end(); \
iter != _end; \
iter++)