Skip to content

Commit

Permalink
CWG1298
Browse files Browse the repository at this point in the history
  • Loading branch information
sdutoit committed Feb 26, 2012
1 parent 87d4057 commit f18d042
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/overloading.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2273,10 +2273,10 @@
\tcode{S1} binds an lvalue reference to a function lvalue and \tcode{S2} binds
an rvalue reference to a function lvalue. \enterexample
\begin{codeblock}
template<class T> int f(T&);
template<class T> int f(T&&);
int f(void(&)()); // \#1
int f(void(&&)()); // \#2
void g();
int i1 = f(g); // calls \tcode{f(T\&)}
int i1 = f(g); // calls \#1
\end{codeblock}
\exitexample

Expand Down

0 comments on commit f18d042

Please sign in to comment.