summaryrefslogtreecommitdiff
path: root/ida.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-06-08 21:41:45 -0400
committerJeffrey Walton <noloader@gmail.com>2016-06-08 21:41:45 -0400
commitd965ca66d99df9fde5a8f7162f2b3e0fea830f13 (patch)
tree095514554c985fc4fad17a44439ab392dac7e976 /ida.cpp
parentddb120e2086f70797d26879844fa51f5686c059f (diff)
downloadcryptopp-git-d965ca66d99df9fde5a8f7162f2b3e0fea830f13.tar.gz
Fixed broken Sun Studio compile (Issue 179)
Diffstat (limited to 'ida.cpp')
-rw-r--r--ida.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ida.cpp b/ida.cpp
index 363fe98a..04f8850d 100644
--- a/ida.cpp
+++ b/ida.cpp
@@ -394,11 +394,11 @@ size_t PaddingRemover::Put2(const byte *begin, size_t length, int messageEnd, bo
m_possiblePadding = false;
}
-#if defined(_MSC_VER) && !defined(__MWERKS__) && (_MSC_VER <= 1300)
+#if defined(_MSC_VER) && (_MSC_VER <= 1300) && !defined(__MWERKS__)
// VC60 and VC7 workaround: built-in reverse_iterator has two template parameters, Dinkumware only has one
typedef std::reverse_bidirectional_iterator<const byte *, const byte> RevIt;
#elif defined(_RWSTD_NO_CLASS_PARTIAL_SPEC)
- typedef std::reverse_iterator<const byte *, random_access_iterator_tag, const byte> RevIt;
+ typedef std::reverse_iterator<const byte *, std::random_access_iterator_tag, const byte> RevIt;
#else
typedef std::reverse_iterator<const byte *> RevIt;
#endif