News for hackers. Stuff that matters.
Re:Ask HN: What features would you add in a computer language? by wfwefwef32 on Tuesday September 18, 2018 @03:07PM (#18018178)
c++ static_if but for class members:

template<class Type> class A {

if constexpr (std::is_same<Type, int>::value) { int a; }

}

There are no comments on this comment yet.