1 | template <int dimm> struct Patch { |
---|---|
2 | static const unsigned int no_neighbor = 1; |
3 | }; |
4 | template <int dim> |
5 | const unsigned int Patch<dim>::no_neighbor; |
6 | void f(const unsigned int); |
7 | void g() { |
8 | f(Patch<1>::no_neighbor); |
9 | } |
10 |
1 | template <int dimm> struct Patch { |
---|---|
2 | static const unsigned int no_neighbor = 1; |
3 | }; |
4 | template <int dim> |
5 | const unsigned int Patch<dim>::no_neighbor; |
6 | void f(const unsigned int); |
7 | void g() { |
8 | f(Patch<1>::no_neighbor); |
9 | } |
10 |