Patch for PR17934

Marshall Clow mclow.lists at gmail.com
Sun Nov 17 12:20:42 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17934
	C++14 cbegin/cend crbegin/crend definitions don't see all overloads of begin/end rbegin/rend

Based the fix suggested by Peter Sommerlad.

Move some code around in <iterator> so that it's visible when the general templates get instantiated.
Add tests to make sure (for std::array).

It kind of bugs me that:
	std::initializer_list<int> il {1,2};
	std::rbegin(il);	// <-- this compiles
	il.rbegin();		// <-- this does not compile.

… but that's what the standard says.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR17934.patch
Type: application/octet-stream
Size: 5680 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131117/703704a9/attachment.obj>


More information about the cfe-commits mailing list