You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
260 B
21 lines
260 B
4 years ago
|
#include <iostream>
|
||
|
|
||
|
template<size_t T>
|
||
|
class MyFoo
|
||
|
{
|
||
|
public:
|
||
|
MyFoo()
|
||
|
{
|
||
|
std::cout << T << std::endl;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
const size_t mySize = INT8_MAX * 2;
|
||
|
MyFoo<mySize * 2> foo1;
|
||
|
MyFoo<mySize / 2> foo2;
|
||
|
MyFoo<2 * mySize> foo1;
|
||
|
MyFoo<2 / mySize> foo2;
|
||
|
}
|