|
Boost : |
From: John Maddock (John_Maddock_at_[hidden])
Date: 2002-02-13 07:34:44
>Seems like a nice thing to do. But I worry that a substring that knows how
>to act as a read-only string is a bit fragile because it's easy to forget
>that it becomes invalid if the string it's based on is deleted, and
there's
>no necessary connection between the lifetime of these objects.
I know, and I worry about it. However the same issue exists with pairs of
iterators/ranges/views in general. I don't know what the right answer is.
- John Maddock
http://ourworld.compuserve.com/homepages/john_maddock/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk