summaryrefslogtreecommitdiffstats
path: root/examples/static_assert.cpp
blob: 08992926e17d0e52cfc5db1c9fe1c8257d861a3d (plain)
1
2
3
4
5
6
7
8
9
#include <frozen/set.h>

static constexpr frozen::set<unsigned, 3> supported_sizes = {
  1, 2, 4
};

static_assert(supported_sizes.count(sizeof(short)), "unsupported size");

int main() { return 0; }