Changeset 65632

Timestamp:
Sep 27, 2010, 4:02:15 PM (12 years ago)
Author:
cppljevans
Message:

WHAT:

1) Added comments explaining why empties_tree_inherit size>1.
2) Added enum_base<index0> speecialization.

WHY:

1) Clarify why using inheritance to achive EBO only works

with 1 level of inheritance.

2) Show further saving of one_of_maybe vs. variant.

OUTPUT:
sizeof(empty_class<0>)=1
sizeof(index_inherit<0,empties_inherit>)=1
sizeof(empties_inherit)=1
sizeof(empties_tree_inherit)=2
sizeof(empties_member)=2
sizeof(empties_all_of)=1
sizeof(empties_tree_all_of)=1
sizeof(empties_variant)=8
sizeof(empties_one_of)=1
sizeof(enum_base<index0>::type)=1
p0=0x7fffefb05f6f
p1=0x7fffefb05f6f
*p0=empty_class<0>const&
*p1=empty_class<1>const&
r0=empty_class<0>const&
r1=empty_class<1>const&
&ea_v=0x7fffefb05f6e
&r0=0x7fffefb05f6e
&r1=0x7fffefb05f6e
r1.get()=1

(No files)

Note: See TracChangeset for help on using the changeset viewer.