Boost logo

Boost :

Subject: Re: [boost] [type traits extension] test for const volatile& as return type
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2011-07-06 01:30:00


>> I maybe forgot to say that I want g(...) to be chosen for T=const int&.
> I don't think that's gonna happen; rvalues (at least with no cv qualifiers)
> are always bindable to reference-to-consts (but, evidently, not
> reference-to-const-volatiles...), and certainly preferable to (...).

Sorry, my fault. I wanted to say const volatile int&!!!

Frédéric


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk