OpenCores
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/] [template/] [mem-partial3.C] - Rev 301

Compare with Previous | Blame | View Log

// PR c++/33342

template <bool B, class T = void>
struct enable_if_c {
  typedef T type;
};

template <class T>
struct A
{
  template <class U, class V>
  struct B;

  template <class U>
  struct B<U, typename enable_if_c<U::sub::value==0>::type>
  { };
};

struct C
{
  struct sub
  {
    static const int value = 0;
  };
};

    
A<int> a;
A<int>::B<C, void> b;

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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