I have the following code:
#include <iostream>
template<size_t N>
class A
{
};
template<int N, typename T> class B;
template<int N>
class B<N, A<N>>
{
};
int main()
{
B<3, A<3>> b;
return 0;
}
Here it is B
templated on int
, but A
on size_t
, which is unsigned long
with both compilers that I use.
1 ( ), , . 2 (, ), , , B
, unsigned long
- 3
unsigned long
, A
, B
. : B
, size_t
( A
, int
)), , . , 2 (, ).