URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic101.C] - Rev 774
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