On 2013-05-10 02:31, Chandler Carruth wrote:
On Fri, May 10, 2013 at 2:16 AM, Marshall Clow <[email protected]
<mailto:[email protected]>> wrote:
Author: marshall
Date: Thu May 9 19:16:10 2013
New Revision: 181569
URL: http://llvm.org/viewvc/llvm-project?rev=181569&view=rev
Log:
Fix incorrect type usage; nice catch by Sebastian
Test case please?
Hm, something like this?
template <typename I>
struct counting_iterator {
typedef I value_type;
typedef I distance_type;
// other iterator stuff
};
assert(!std::equal(counting_iterator<char>(0x00),
counting_iterator<char>(0x04),
counting_iterator<int>(0x00), counting_iterator<int>(0x104));
That would assign the second distance to a char, which should wrap
around to make the sequences appear the same.
Sebastian
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits