blob: 4e80a1dbf25237c1b94534098207565f9b7fb7d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
*** old/settergetter.h Wed Jan 17 03:57:37 1996
--- settergetter.h Mon Jul 12 15:28:20 1999
***************
*** 64,69 ****
--- 64,70 ----
Status (Object::*setfunc)(Type),
Type (Object::*getfunc)() const)
: obj(objptr), setter(setfunc), getter(getfunc) {}
+ ~MethodSetterGetter() {}
redefined boolean set(Type value) {
return boolean((obj->*setter)(value));
}
***************
*** 89,94 ****
--- 90,96 ----
public:
FunctionSetterGetter(Status (*setfunc)(Type), Type (*getfunc)())
: setter(setfunc), getter(getfunc) {}
+ ~FunctionSetterGetter() {}
redefined boolean set(Type value) { (*setter)(value); return true; }
redefined Type get() const { return (*getter)(); }
private:
|