summaryrefslogtreecommitdiff
path: root/include/erebos
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos')
-rw-r--r--include/erebos/frp.h6
-rw-r--r--include/erebos/sync.h2
2 files changed, 7 insertions, 1 deletions
diff --git a/include/erebos/frp.h b/include/erebos/frp.h
index 5fc88f6..28a8f63 100644
--- a/include/erebos/frp.h
+++ b/include/erebos/frp.h
@@ -62,6 +62,12 @@ template<typename T>
class Watched
{
public:
+ Watched() = default;
+ Watched(const Watched<T> &) = default;
+ Watched & operator=(const Watched<T> &) = default;
+ Watched(Watched<T> &&) = default;
+ Watched & operator=(Watched<T> &&) = default;
+
Watched(shared_ptr<function<void(const BhvCurTime &)>> && cb):
cb(move(cb)) {}
~Watched();
diff --git a/include/erebos/sync.h b/include/erebos/sync.h
index dad4e0e..1ab927d 100644
--- a/include/erebos/sync.h
+++ b/include/erebos/sync.h
@@ -28,7 +28,7 @@ private:
void localStateWatcher(const vector<Ref> &);
const class Server * server;
- std::optional<Watched<vector<Ref>>> watchedLocal;
+ Watched<vector<Ref>> watchedLocal;
};
}