diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-03 20:00:29 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-03 20:00:29 -0400 |
commit | f7c0fab5b2d90b384f9a3002f8e780dd4fe29906 (patch) | |
tree | 18711353dd2315c571d8383aa54fbab933edd51a /algparam.h | |
parent | a4d97e9bf8c1937c0aaa09a4ed4624fa25957b61 (diff) | |
download | cryptopp-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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
|