This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/33490] parallel v3: std::accumulate assumes iterators have std::iterator_traits declared

------- Comment #1 from singler at ira dot uka dot de  2007-09-19 18:42 -------
The standard states clearly (24.3.1):

"Accordingly, it is required that if Iterator is the type of an iterator, the


be defined as..."

That this is missing in the requirement lists in 24.1.1 and 24.1.2 is probably
due to the fact that it does not concern the Iterator class itself, but

The Sun SGI documentation also states:

"If you are defining a new iterator type I, then you must ensure that
iterator_traits<I> is defined properly."

Thus, struct X is an invalid iterator.


singler at ira dot uka dot de changed:

           What    |Removed                     |Added
                 CC|                            |singler at ira dot uka dot
                   |                            |de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]