OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [variadic97.C] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/42266
2
// { dg-options -std=c++0x }
3
 
4
template
5
  class tuple;
6
 
7
template
8
  class _Mu;
9
 
10
template
11
  struct _Bind;
12
 
13
template
14
  class _Bind<_Functor(_Bound_args...)>
15
  {
16
    template
17
             = decltype(_Functor()(_Mu<_Bound_args>()(_Bound_args(),
18
                                                      tuple<_Args...>())...) )>
19
      void __call() { }
20
  };
21
 
22
template
23
  _Bind<_Functor(_Arg)>
24
  bind(_Functor, _Arg) { }
25
 
26
struct State
27
{
28
  bool ready() { return true; }
29
 
30
  void f()
31
  {
32
    bind(&State::ready, this);
33
  }
34
};
35
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.