From fc3a5e7e8f632112420df1d99f0d2080f19477d0 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 13 Mar 2006 13:26:26 +0000 Subject: add missing Ref() function git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@216 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- cryptlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cryptlib.h') diff --git a/cryptlib.h b/cryptlib.h index 9b17323..46ac0be 100644 --- a/cryptlib.h +++ b/cryptlib.h @@ -521,6 +521,11 @@ public: class CRYPTOPP_DLL CRYPTOPP_NO_VTABLE HashTransformation : public Algorithm { public: + //! return a reference to this object, + /*! This function is useful for passing a temporary HashTransformation object to a + function that takes a non-const reference. */ + HashTransformation& Ref() {return *this;} + //! process more input virtual void Update(const byte *input, size_t length) =0; -- cgit v1.2.1