------- Comment #2 from paolo dot carlini at oracle dot com  2008-08-16 22:55 
-------
The below does compile (with -std=c++0x of course) and indeed the triple
ampersand is there.

////////////

#include <utility>

template <class T>
void f(T&& a, bool);

template<class T> 
void f(T&& a){ 
  f(std::forward<T>(a), true);
} 

int main()
{
  int a;
  f(a);
}


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-16 22:55:47
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37089

Reply via email to