Merge pull request #85 from javeme/monitor-copy
Implement copy constructor for class Monitor
This commit is contained in:
commit
3ceeeb9204
|
|
@ -57,6 +57,16 @@ public:
|
||||||
_watchable->add(this);
|
_watchable->add(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy constructor
|
||||||
|
* @param monitor
|
||||||
|
*/
|
||||||
|
Monitor(const Monitor &monitor) : _watchable(monitor._watchable)
|
||||||
|
{
|
||||||
|
// register with the watchable
|
||||||
|
_watchable->add(this);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Destructor
|
* Destructor
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue