[cfe-dev] Function accepting rvalue and lvalue references

Michael Lehn michael.lehn at uni-ulm.de
Tue Oct 2 17:36:17 PDT 2012


> 
> Possibly so: it works for
>  template <typename A> void foo(A&&)
> because A can be deduced as an lvalue ref there (so that A&& is T& for
> some T), but not for your case.
> 
> -- James
> 
> 

Yes, that makes sense.  Thanks!



More information about the cfe-dev mailing list