This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Be compatible with LWG 2438 "std::iterator inheritance shouldn't be mandated".
ClosedPublic

Authored by STL_MSFT on May 1 2017, 5:40 PM.

Details

Summary

[libcxx] [test] Be compatible with LWG 2438 "std::iterator inheritance shouldn't be mandated".

In C++17, these iterators are allowed but not required to inherit from the deprecated std::iterator base class.

Diff Detail

Event Timeline

STL_MSFT created this revision.May 1 2017, 5:40 PM
EricWF accepted this revision.May 4 2017, 1:06 AM
EricWF added inline comments.
test/std/iterators/stream.iterators/istream.iterator/types.pass.cpp
42

Needs #include "test_macros.h"

test/std/iterators/stream.iterators/ostream.iterator/types.pass.cpp
25

Needs #include "test_macros.h"

test/std/iterators/stream.iterators/ostreambuf.iterator/types.pass.cpp
26

Needs #include "test_macros.h"

This revision is now accepted and ready to land.May 4 2017, 1:06 AM
EricWF added a comment.May 4 2017, 1:07 AM

LGTM minus inline comments.

STL_MSFT closed this revision.May 5 2017, 4:15 PM

Committed with requested changes.