Skip to content

Commit e33a7c7

Browse files
committed
- Initial implementation of the basic Observer System
1 parent 57076d5 commit e33a7c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ESPressio_IObservable.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ namespace ESPressio {
1818
virtual void Unregister() = 0;
1919
/// Will return a `weak_ptr` to the `IObservable`
2020
virtual std::weak_ptr<IObservable> GetObservable() = 0;
21-
/// Will return a `weak_ptr` to the `IObserver`
22-
virtual std::weak_ptr<IObserver> GetObserver() = 0;
21+
/// Will return a pointer to the `IObserver`
22+
virtual IObserver* GetObserver() = 0;
2323
};
2424

2525
class IObservable : public std::enable_shared_from_this<IObservable> {

0 commit comments

Comments
 (0)