1 // Origin: Peter Schmid <schmid@snake.iap.physik.tu-darmstadt.de>
12 Ptr(void) : ptr(0) { };
13 Ptr(T * p) : ptr(p) { };
15 ~Ptr(void) { delete ptr; }
17 operator T & () { return *ptr; }
27 class foo : public base {
37 void func2(base & b) {
43 /* This should not result in a copy; the result of the conversion
44 operator should be bound directly to the reference argument to