Permalink
Browse files

Use libc++: replace typeof with decltype

  • Loading branch information...
jtbandes committed Aug 27, 2012
1 parent c6ca557 commit 8ca66e4a68a6e360e0e84d83f61d6ca28765d3d3
Showing with 1 addition and 1 deletion.
  1. +1 −1 Dialog2.h
View
@@ -23,7 +23,7 @@ template <class T> typename T::iterator beginof (T& c) { return c.begin(); }
template <class T> typename T::iterator endof (T& c) { return c.end(); }
#ifndef foreach
-#define foreach(v,f,l) for(typeof(f) v = (f), _end = (l); v != _end; ++v)
+#define foreach(v,f,l) for(decltype(f) v = (f), _end = (l); v != _end; ++v)
#endif
#ifndef iterate

0 comments on commit 8ca66e4

Please sign in to comment.