spirit
spirit copied to clipboard
prefer auto to Rng::(const_)?iterator for generic String
- c++20 ranges library does not require a range to have member type/alias iterator/const_iterator.
- boost range library uses
typename boost::range_iterator<Rng>::type
instead ofRng::iterator
because a customized Rng may not have member type/alias iterator/const_iterator. e.g.std::pair<It, It>
.
Therefore for generic String type, auto
is better than Rng::(const_)?iterator
.
The changes in this commit are all in x3 folder with std14 at least. Somehow CI fails in some std03/11 karma/qi builds.