chriskohlhoff / asio-tr2

C++ TR2 proposal based on Asio
17 stars 5 forks source link

basic_resolver_iterator is underspecified #11

Open mclow opened 9 years ago

mclow commented 9 years ago

It's just got a constructor - that's all.

chriskohlhoff commented 9 years ago

It also requires the other members defined by the forward iterator requirements.

However, it probably needs a few extra introductory explanatory paragraphs. What else do you need to see?

mclow commented 9 years ago

What's it supposed to iterate over? The operator * and -> are going to return a basic_resolver_entry, but there's nothing there about where these come from, and how the iterator can iterate over them

chriskohlhoff commented 9 years ago

It would iterate over an addrinfo* linked list. The only way to obtain a non-end iterator is from a resolve() call.

chriskohlhoff commented 9 years ago

As a starting point i've adapted some text from the filesystem spec's directory_iterator. Committed in 95c89d9c5f66fc8288dd651b583cde87f0dba140. See: http://chriskohlhoff.github.io/asio-tr2/#classes.ip__basic_resolver_iterator