On 12-05-20 13:59 , Richard Henderson wrote:
On 05/18/2012 04:48 PM, Diego Novillo wrote:
We can do this in trunk today using a variant of Lawrence's original
patch (http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01649.html). This
uses no C++ features, though it weakens type checking by removing away
constness.

In the cxx-conversion branch, we can use overloads, which will DTRT
with const.

My question is, what do folks prefer?

a) The trunk patch today, using no C++ features.
b) Wait for the cxx-conversion variant?

Surely (check(t), t) also works, and also strt wrt const.

My concern with (check(t), t) is that it evaluates 't' twice. It may not be a big deal, however. In which case, I'm OK with that alternative.


Diego.

Reply via email to