URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic101.C] - Rev 315
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/43382
// { dg-options "-std=c++0x" }
template<class T>
struct Container
{ T f() const; };
template<class T>
T deref(const T& t)
{ return t; }
template <class T, class... Args>
auto
deref(const T& u, int r, Args... args)
-> decltype(deref(u.f(), args...))
{ return deref(u.f(), args...); }
int main(void)
{
Container<Container<int>> v;
deref(v,1,2);
}
Go to most recent revision | Compare with Previous | Blame | View Log