|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2005-03-09 10:31:53
"Peter Dimov" <pdimov_at_[hidden]> writes:
> David Abrahams wrote:
>> If you want to be unambiguous, it has to be more like:
>>
>> [hello] <- a non-empty optional<std::string>
>> [] <- a non-empty optional<std::string> (the string is empty)
>> _ <- an empty optional<T>
>
> My preference is
>
> hello
>
> _
>
> A string can never be output "correctly", no matter what the delimiters are
> ("a] [b").
I disagree. You can generate escapes:
[a\] \[b]
or if you like,
[a\]\ \[b]
-- Dave Abrahams Boost Consulting www.boost-consulting.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk