fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. template <size_t SIZE>
  5. struct S
  6. {
  7. static const int x = SIZE;
  8. };
  9.  
  10. int main()
  11. {
  12. cout << S<3>::x << "\n"
  13. << S<5>::x << "\n";
  14.  
  15. return 0;
  16. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
3
5