|
Boost : |
Subject: Re: [boost] [config] [regression] Regression test failures due to compiler bugs -- your advice needed
From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2015-01-21 16:36:12
On Thu, Jan 22, 2015 at 12:27 AM, Peter Dimov <lists_at_[hidden]> wrote:
> Andrzej Krzemienski wrote:
>
>> Are you saying that on a compiler where an operation on optional<T&> might
>> give wrong run-time result, the operation should be disabled (render a
>> compile-time error)?
>
> I think that am I saying that if an operation on optional<T&> is apt to
> result in dangling pointers on many popular compilers, the operation should
> be disabled for all compilers for consistency, not just those that will
> exhibit the failure. This interface is obviously too dangerous to be of any
> use and, while it will work on some compilers, its use will not be portable.
It's also possible to make the feature optional, so that it can be
enabled by a macro.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk