Allow declaration of map and multimap iterator with incomplete mapped type. Patch from eugenis

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@231119 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2015-03-03 20:10:01 +00:00
parent 174b2b8acf
commit 9c8e663ced
4 changed files with 91 additions and 35 deletions

View File

@@ -15,15 +15,15 @@
#include <map>
#if !__has_feature(cxx_noexcept)
struct X
{
std::map<int, X> m;
std::map<int, X>::iterator i;
std::map<int, X>::const_iterator ci;
std::map<int, X>::reverse_iterator ri;
std::map<int, X>::const_reverse_iterator cri;
};
#endif
int main()
{
}