URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// PR c++/42266
|
// PR c++/42266
|
// { dg-options -std=c++0x }
|
// { dg-options -std=c++0x }
|
|
|
template
|
template
|
class tuple;
|
class tuple;
|
|
|
template
|
template
|
class _Mu;
|
class _Mu;
|
|
|
template
|
template
|
struct _Bind;
|
struct _Bind;
|
|
|
template
|
template
|
class _Bind<_Functor(_Bound_args...)>
|
class _Bind<_Functor(_Bound_args...)>
|
{
|
{
|
template
|
template
|
= decltype(_Functor()(_Mu<_Bound_args>()(_Bound_args(),
|
= decltype(_Functor()(_Mu<_Bound_args>()(_Bound_args(),
|
tuple<_Args...>())...) )>
|
tuple<_Args...>())...) )>
|
void __call() { }
|
void __call() { }
|
};
|
};
|
|
|
template
|
template
|
_Bind<_Functor(_Arg)>
|
_Bind<_Functor(_Arg)>
|
bind(_Functor, _Arg) { }
|
bind(_Functor, _Arg) { }
|
|
|
struct State
|
struct State
|
{
|
{
|
bool ready() { return true; }
|
bool ready() { return true; }
|
|
|
void f()
|
void f()
|
{
|
{
|
bind(&State::ready, this);
|
bind(&State::ready, this);
|
}
|
}
|
};
|
};
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.