X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/e9ae1f101b5418c0ba2e6c9d86b23c12f0140982..646c8fd6c0112573ba2aae7f165f5d48e849831e:/include/stg/notifer.h?ds=sidebyside diff --git a/include/stg/notifer.h b/include/stg/notifer.h index 367c5ced..339b6170 100644 --- a/include/stg/notifer.h +++ b/include/stg/notifer.h @@ -3,20 +3,15 @@ namespace STG { -template -struct PropertyNotifierBase -{ - virtual ~PropertyNotifierBase() = default; - - virtual void Notify(const T& oldValue, const T& newValue) = 0; -}; - -template +template struct NotifierBase { virtual ~NotifierBase() = default; - virtual void Notify(const T& value) = 0; + virtual void notify(const Ts&... values) = 0; }; +template +using PropertyNotifierBase = NotifierBase; + }