How can I delegate all methods of a part object to the composite class without using a get() method and call it on the Composition object:
Example:
struct Part {
void f() {};
int g(double &v) { v = 2; return 3; }
};
struct Composition {
Part part;
};
The Composition class should be able to be used in this way:
Composition p;
p.f()
int a = p.g(2.0)
Additionally I want use boost::bind in this way:
boost::bind(&Composition:f, this)