Or using std::tuple magic to save memory.
great trick! thanks for posting.
so is it because tuple is impl w/ inheritance and the compiler is using empty base class optimization?
yep, you're absolutely correct :)
great trick! thanks for posting.
so is it because tuple is impl w/ inheritance and the compiler is using empty base class optimization?
yep, you're absolutely correct :)