summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 15:32:55 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-05-04 15:32:55 +0000
commitdb8faa64808fbaf1641a192078d3efd8fef77454 (patch)
treec8630e88e17d93dfb1fd25b8a770871df37ff3f1 /misc.h
parent2e2c395021dff780ca2041914e0bb745491cb24e (diff)
downloadcryptopp-db8faa64808fbaf1641a192078d3efd8fef77454.tar.gz
change PutBlock to default to non-aligned access
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@336 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc.h b/misc.h
index f0f7bd2..8dc91f2 100644
--- a/misc.h
+++ b/misc.h
@@ -980,7 +980,7 @@ private:
const byte *m_block;
};
-template <class T, class B, bool A=true>
+template <class T, class B, bool A=false>
class PutBlock
{
public:
@@ -1002,12 +1002,12 @@ private:
byte *m_block;
};
-template <class T, class B, bool A=true>
+template <class T, class B, bool GA=true, bool PA=false>
struct BlockGetAndPut
{
// function needed because of C++ grammatical ambiguity between expression-statements and declarations
- static inline GetBlock<T, B, A> Get(const void *block) {return GetBlock<T, B, A>(block);}
- typedef PutBlock<T, B, A> Put;
+ static inline GetBlock<T, B, GA> Get(const void *block) {return GetBlock<T, B, GA>(block);}
+ typedef PutBlock<T, B, PA> Put;
};
template <class T>