Fix for PRPR17934; based on a fix suggested by Peter Sommerlad
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -52,6 +52,7 @@ void test_const_container( const std::initializer_list<T> & c, T val ) {
|
||||
assert ( std::end(c) == c.end());
|
||||
#if _LIBCPP_STD_VER > 11
|
||||
// initializer_list doesn't have cbegin/cend/rbegin/rend
|
||||
// but std::cbegin(),etc work (b/c they're general fn templates)
|
||||
// assert ( std::cbegin(c) == c.cbegin());
|
||||
// assert ( std::cbegin(c) != c.cend());
|
||||
// assert ( std::cend(c) == c.cend());
|
||||
|
Reference in New Issue
Block a user