On 08/05/16 15:55 +0300, Ville Voutilainen wrote:
For what it's worth, I have the tiniest preference against using decay here; whenever I see decay, I wonder whether array/function decay is significant. While it doesn't make a difference here, I still prefer just doing remove_reference+remove_const here. It's up to Jonathan, I'll change it to decay if he so advises.
At one point I felt the same about being more precise with remove_ref+remove_const, but I just use decay now. I don't have a preference either way (although if we added a __decay_t alias for use in C++11 then I might be swayed to use that, as it would be even more concise).