Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2007-10-19 05:31:16


Sudarshan Gaikaiwari wrote:
> Hi
>
> The boost regex library makes liberal use of &*string.begin()

>
> Is this construct safe? Are its semantics specified by the standard?

It isn't specified by the current std: but all current implementations I'm
aware of do support it. The next (currently draft) std requires that
basic_string's buffer be contiguous, so it will be std-mandated shortly.

HTH, John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net