[PATCH] Make __wrap_iter work with gcc

Nico Weber thakis at chromium.org
Tue Jan 27 10:38:29 PST 2015


================
Comment at: include/iterator:1116
@@ -1115,1 +1115,3 @@
+template <class _Tp, class _Alloc> class vector;
+
 template <class _Iter>
----------------
thakis wrote:
> mclow.lists wrote:
> > There's also a friend decl for `basic_string` in `__wrap_iter`; why don't we need a fwd declaration for that as well?
> > 
> > (because it's a compiler bug?)
> I wondered about this too, but I wasn't able to tickle the symmetric problem for string. I think it's because iterator includes iosfwd, and iosfwd declares basic_string (as that file is where `typedef basic_string<char> string` lives, for some reason).
In other words, there already is a forward declaration of basic_string somewhere.

http://reviews.llvm.org/D7201

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list