Skip to content

Commit e72e5f8

Browse files
committed
test_size: Add comments with the results, so we can notice changes.
1 parent 831dfc8 commit e72e5f8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

tests/test_size.cc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,47 @@ main(int argc, char* argv[])
3232
{
3333
std::cout << "sizes of public classes:" << std::endl;
3434

35+
//libsigc++ 2.10: 8
36+
//libsigc++ 3.0: 8
3537
std::cout << " trackable: " << sizeof(sigc::trackable) << std::endl;
38+
39+
//libsigc++ 2.10: 16
40+
//libsigc++ 3.0: 16
3641
std::cout << " slot<void()>: " << sizeof(sigc::slot<void()>) << std::endl;
42+
43+
//libsigc++ 2.10: 16
44+
//libsigc++ 3.0: 16
3745
std::cout << " signal<void()>: " << sizeof(sigc::signal<void()>) << std::endl;
46+
47+
//libsigc++ 2.10: 8
48+
//libsigc++ 3.0: 8
3849
std::cout << " connection: " << sizeof(sigc::connection) << std::endl;
3950

51+
4052
std::cout << std::endl << "sizes of internal classes:" << std::endl;
4153

54+
//libsigc++ 2.10: 16
55+
//libsigc++ 3.0: 16
4256
std::cout << " trackable_callback: " << sizeof(sigc::internal::trackable_callback)
4357
<< std::endl;
58+
59+
//libsigc++ 2.10: 32
60+
//libsigc++ 3.0: 32
4461
std::cout << " trackable_callback_list: " << sizeof(sigc::internal::trackable_callback_list)
4562
<< std::endl;
63+
64+
//libsigc++ 2.10: 48
65+
//libsigc++ 3.0: 48
4666
std::cout << " slot_rep: " << sizeof(sigc::internal::slot_rep) << std::endl;
67+
68+
//libsigc++ 2.10: 72
69+
//libsigc++ 3.0: 64
4770
std::cout << " typed_slot_rep<mem_functor<void,A> >: "
4871
<< sizeof(sigc::internal::typed_slot_rep<sigc::mem_functor<void (A::*)()>>)
4972
<< std::endl;
73+
74+
//libsigc++ 2.10: 32
75+
//libsigc++ 3.0: 32
5076
std::cout << " signal_impl: " << sizeof(sigc::internal::signal_impl) << std::endl;
5177
}
5278
return util->get_result_and_delete_instance() ? EXIT_SUCCESS : EXIT_FAILURE;

0 commit comments

Comments
 (0)