diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-03-19 16:32:25 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-03-19 16:32:25 +0100 |
commit | 5801272a4ab462cf3258e02ddf612ed573aa5b34 (patch) | |
tree | 1ae0d2dd7dd06a954f3971b7a5a2c64acf07275b /include | |
parent | 266eb73475303ed6d48add31eec95700923e2146 (diff) |
m_check Refactor, move to the new RPL_CHECK numeric
Diffstat (limited to 'include')
-rw-r--r-- | include/numericbuilder.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/numericbuilder.h b/include/numericbuilder.h index a7b83125f..b09958986 100644 --- a/include/numericbuilder.h +++ b/include/numericbuilder.h @@ -22,6 +22,7 @@ namespace Numeric { class WriteNumericSink; + class WriteRemoteNumericSink; template <char Sep, bool SendEmpty, typename Sink> class GenericBuilder; @@ -46,6 +47,22 @@ class Numeric::WriteNumericSink } }; +class Numeric::WriteRemoteNumericSink +{ + User* const user; + + public: + WriteRemoteNumericSink(User* u) + : user(u) + { + } + + void operator()(Numeric& numeric) const + { + user->WriteRemoteNumeric(numeric); + } +}; + template <char Sep, bool SendEmpty, typename Sink> class Numeric::GenericBuilder { |