On Mon, 01 Jun 2015 11:03:29 +0000, Namespace wrote:

> What about ----
> auto h = &r.front; // can get the front of the range ----
> ?

there is funnier trick:
  static void testfront(T) (auto ref T n) {} testfront(r.front);

the thing is that we don't really want to check if we can take an address 
of front value, we want to keep `ref` if it's there. with this magic 
template `ref` is not stripped, but we still don't require "&" to work.

Attachment: signature.asc
Description: PGP signature

Reply via email to