summaryrefslogtreecommitdiff
path: root/ida.cpp
diff options
context:
space:
mode:
authorweidai <weidai11@users.noreply.github.com>2004-07-03 01:20:11 +0000
committerweidai <weidai11@users.noreply.github.com>2004-07-03 01:20:11 +0000
commitebbfa727630241d70cfb4d54ca14e7333539a6ee (patch)
treeb9be61377a42dc73c1ed4980ce7070d3498c440a /ida.cpp
parent2daca5912cabb9a2016293a2a56d72c04d9bb7ce (diff)
downloadcryptopp-git-ebbfa727630241d70cfb4d54ca14e7333539a6ee.tar.gz
allow compile with STLport again
Diffstat (limited to 'ida.cpp')
-rw-r--r--ida.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ida.cpp b/ida.cpp
index da24da3e..cc62123a 100644
--- a/ida.cpp
+++ b/ida.cpp
@@ -391,13 +391,13 @@ unsigned int PaddingRemover::Put2(const byte *begin, unsigned int length, int me
m_possiblePadding = false;
}
-#if defined(_MSC_VER) && !defined(__MWERKS__)
+#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER < 1300)
// VC60 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one
- typedef reverse_bidirectional_iterator<const byte *, const byte> rit;
+ typedef reverse_bidirectional_iterator<const byte *, const byte> RevIt;
#else
- typedef reverse_iterator<const byte *> rit;
+ typedef reverse_iterator<const byte *> RevIt;
#endif
- const byte *x = find_if(rit(end), rit(begin), bind2nd(not_equal_to<byte>(), 0)).base();
+ const byte *x = find_if(RevIt(end), RevIt(begin), bind2nd(not_equal_to<byte>(), 0)).base();
if (x != begin && *(x-1) == 1)
{
AttachedTransformation()->Put(begin, x-begin-1);