10 Baz (int value
):m_value(value
) {}
13 printf ("%s returning: %d.\n", __FUNCTION__
, m_value
);
23 Baz2 (int value
):m_value(value
) {}
26 printf ("%s returning: %d.\n", __FUNCTION__
, m_value
);
33 static int bar_value
= 20;
36 printf ("%s returning: %d.\n", __FUNCTION__
, bar_value
);
45 Baz (int value
):m_value(value
) {}
48 printf ("%s returning: %d.\n", __FUNCTION__
, m_value
);
58 printf ("I am a global function, I return 333.\n");
64 Foo::Bar::Baz
mine(200);
65 Foo::Bar::Baz2
mine2(300);
68 printf ("Yup, got %d from Baz.\n", mine
.Function());
69 printf ("Yup, got %d from Baz.\n", mine2
.Function());
70 printf ("Yup, got %d from Baz.\n", bare_baz
.Function());
71 printf ("And got %d from Bar.\n", Foo::Bar::Function());
72 printf ("And got %d from ::.\n", ::Function());