--- Comment #2 from Stewart Gordon <> 2012-04-26 07:30:49 PDT ---
(In reply to comment #1)
> It may also be required that front can be used to initialize a variable (I
> think there may be some cases where a non-void value cannot be used this way,
> but I'm not sure).  How do you test for this, and then 'use' the variable 
> later
> when you have no idea how it can be used?  I suppose you could pass it to a
> function template?


auto h = r.front;
static assert(is(typeof(h)));

(I've assumed here that using a variable in a static assert or IsExpression
passes as referencing it.)

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to