Closed Bug 1715800 Opened 3 years ago Closed 3 years ago

mozilla::intl::Enumeration::Iterator should define the iterator traits directly in the class

Categories

(Core :: Internationalization, task, P3)

task

Tracking

()

RESOLVED FIXED

People

(Reporter: gregtatum, Unassigned)

References

Details

(Whiteboard: [i18n-unification])

This is a follow-up to https://phabricator.services.mozilla.com/D116157.

In intl/components/src/ICU4CGlue.h

  // TODO - Extending from std::iterator was deprecated in C++17. Instead define
  // the iterator traits directly in the class.
  class Iterator
      : public std::iterator<std::input_iterator_tag,
                             const CharType*,  // "value_type"
                             void,             // "difference_type" (unused)
                             void,             // "pointer" (unused)
                             T  // "reference" - Value returned in iterator
                             > {
Whiteboard: [i18n-unification]
See Also: → 1738107

Resolved by Bug 1738107

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.