joboccara / NamedType

Implementation of strong types in C++
MIT License
769 stars 84 forks source link

Empty base class optimization enabled on Visual Studio >= 2017. #13

Closed VincentZalzal closed 6 years ago

VincentZalzal commented 6 years ago

Multiple inheritance inhibits EBCO on Visual Studio. See https://blogs.msdn.microsoft.com/vcblog/2016/03/30/optimizing-the-layout-of-empty-base-classes-in-vs2015-update-2-3/ for more details.

I also added a test case to see that adding more than one skill has no memory overhead.