summaryrefslogtreecommitdiff
path: root/algparam.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-11-03 20:00:29 -0400
committerJeffrey Walton <noloader@gmail.com>2018-11-03 20:00:29 -0400
commitf7c0fab5b2d90b384f9a3002f8e780dd4fe29906 (patch)
tree18711353dd2315c571d8383aa54fbab933edd51a /algparam.h
parenta4d97e9bf8c1937c0aaa09a4ed4624fa25957b61 (diff)
downloadcryptopp-git-f7c0fab5b2d90b384f9a3002f8e780dd4fe29906.tar.gz
Fix compile on early Apple platforms.
I think this may be related to the VectorSource check-in. The error is: algparam.h: In constructor 'ConstByteArrayParameter::ConstByteArrayParameter(const T&, bool) [with T = std::vector<byte, std::allocator<byte> >]': filters.h:1444: instantiated from here algparam.h:56: error: 'const class std::vector<byte, std::allocator<byte> >' has no member named 'data'
Diffstat (limited to 'algparam.h')
-rw-r--r--algparam.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/algparam.h b/algparam.h
index 40c5f46e..1b125f02 100644
--- a/algparam.h
+++ b/algparam.h
@@ -53,7 +53,7 @@ public:
: m_deepCopy(false), m_data(NULLPTR), m_size(0)
{
CRYPTOPP_COMPILE_ASSERT(sizeof(typename T::value_type) == 1);
- Assign(reinterpret_cast<const byte *>(string.data()), string.size(), deepCopy);
+ Assign(reinterpret_cast<const byte *>(&string[0]), string.size(), deepCopy);
}
/// \brief Assign contents from a memory buffer