title: Convert IP Address from std::string to boost::uint32
body: <p>Is there any function in the Boost library, in which I can convert and IPv4 address given as string:</p>
  
  <pre><code>std::string ip_address = "192.168.0.1";
  </code></pre>
  
  <p>Into a binary format as following "11000000101010000000000000000001" and store it in a boost::unit32 unit, or I should build the function by myself?</p>
  
  <p>Also what about converting an IPv6 address from std::string into 4 * unit32, is there any function to convert it into octets?</p>