Index: include/iosfwd =================================================================== --- include/iosfwd +++ include/iosfwd @@ -194,6 +194,11 @@ typedef basic_string, allocator > string; typedef basic_string, allocator > wstring; + +// Include other forward declarations here +template > +class _LIBCPP_TYPE_VIS_ONLY vector; + _LIBCPP_END_NAMESPACE_STD #endif // _LIBCPP_IOSFWD Index: include/iterator =================================================================== --- include/iterator +++ include/iterator @@ -340,10 +340,10 @@ */ #include <__config> +#include // for forward declarations of vector and string. #include <__functional_base> #include #include -#include #include #ifdef __APPLE__ #include Index: include/vector =================================================================== --- include/vector +++ include/vector @@ -262,6 +262,7 @@ */ #include <__config> +#include // for forward declaration of vector #include <__bit_reference> #include #include @@ -453,7 +454,7 @@ } } -template > +template */> class _LIBCPP_TYPE_VIS_ONLY vector : private __vector_base<_Tp, _Allocator> {