Jump to content
  • Advertisement
Sign in to follow this  
whiterook6

Boost asio reference (constructors)

This topic is 2903 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?)

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!