From b3bede5cea1a5854471df0f0d583f7437444fc8e Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Sun, 29 Jul 2018 08:11:14 +0200 Subject: [PATCH] added operator with void args, just returning CRC --- crc.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crc.hh b/crc.hh index 3ff8ede..2c96761 100644 --- a/crc.hh +++ b/crc.hh @@ -33,6 +33,10 @@ public: { crc = v; } + TYPE operator()() + { + return crc; + } TYPE operator()(bool data) { TYPE tmp = crc ^ data;