2

Say there is a class test with a member void test::foo(), we know we can create an alias for this class by typedef test alt (or the using command.)

Does c++ support aliasing class members in the following sense: typedef test::foo() alt::fooatl();, i.e., alt.fooalt() calls should correspond to a call to test.foo()?

1 Answers1

2

No. p0945r0: "Generalizing alias declarations" would allow you to do that, but it was not yet moved forward at the latest meeting (Rapperswil).

Vittorio Romeo
  • 90,666
  • 33
  • 258
  • 416