Skip to content

Instantly share code, notes, and snippets.

#include <cstdint>
#include <type_traits>
#include <utility>
/// Specialize the T<true, n> base classes to deduce inheritance based on value, where n is a bit position.
/// i.e:
/// class Base : FeatureHelper<T, 5u>{};
/// ==
/// class Base : T<true, 0>, T<true, 2>{};
///