Comment

Comment by wfwefwef32

c++ static_if but for class members:

template<class Type> class A {

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

}

parent wfwefwef32 8 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton