
"Nevin Liber" <nevin@eviloverlord.com> wrote in message news:AANLkTi=iE8V4grniB1HgXeBJNBUG0gVyKHpGW+7wHczo@mail.gmail.com...
On 6 November 2010 13:08, Emil Dotchevski <emil@revergestudios.com> wrote:
Can someone please explain why does storing the empty state take space per type?
Is it a side effect of being a header only library?
No, but because each target type requires/is invoked by different (source and/or generated) code so it needs a different vtable that points to the different invoker code... e.g. different code is used to invoke a free function pointer, a bound member function, a lambda expression, a referenced boost function etc etc... -- "What Huxley teaches is that in the age of advanced technology, spiritual devastation is more likely to come from an enemy with a smiling face than from one whose countenance exudes suspicion and hate." Neil Postman