Boost asio reference (constructors)

Started by
2 comments, last by Antheus 13 years, 9 months ago
The official Boost Asio reference doesn't list any constructors (or at least none that I can find.) Is there another reference that lists the constructors for the various objects (like endpoints, acceptors, etc?)
Advertisement
Endpoint.
Acceptor.

Lots of template abuse, look into basic_xyz, those are actual classes, the rest are mostly typedefs.
In general, the constructors want the io_service object as an argument.

Whether it's template "abuse" or "use" is, I guess, a matter of personal preference. Boost chooses static polymorphism where possible, presumably for speed-over-storage trade-offs. In the most common case, there's only one implementation, so dynamic polymorphism would be a (small) net loss in any case.

I've found that using "grep -r" inside the boost/asio directory is the fastest way to find whatever I need.
enum Bool { True, False, FileNotFound };
Quote:Original post by hplus0603

Whether it's template "abuse" or "use" is,


Meh, verbosity was the word.

The design is ok, the namespaces just get out of hand.

This topic is closed to new replies.

Advertisement