3 ms·
> I like the idea of your first try, but it's not guaranteed to work on all implementations, in C++ you'd just add static_assert(sizeof(int) < sizeof(int6
by jcelerier 8y ago
> I like the idea of your first try, but it's not guaranteed to work on all implementations,
in C++ you'd just add
static_assert(sizeof(int) < sizeof(int64_t), "fix your types");
to be safe about this