Skip to content

Instantly share code, notes, and snippets.

@ryangraham
Created December 12, 2011 19:50
Show Gist options
  • Save ryangraham/1468795 to your computer and use it in GitHub Desktop.
Save ryangraham/1468795 to your computer and use it in GitHub Desktop.
Casting an asio buffer
const unsigned char* buf=boost::asio::buffer_cast<const unsigned char*>(inbuf_.data());
std::cout << &inbuf_;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment