fork download
  1. struct Value
  2. {
  3. template<class T>
  4. static constexpr T value{0};
  5. };
  6.  
  7. struct Something
  8. {
  9. void x()
  10. {
  11. static_assert(Value::template value<int> == 0, "");
  12. }
  13. };
  14.  
  15. int main() { Something{}.x(); return 0; }
Success #stdin #stdout 0s 3452KB
stdin
Standard input is empty
stdout
Standard output is empty