From f7c0fab5b2d90b384f9a3002f8e780dd4fe29906 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 3 Nov 2018 20:00:29 -0400 Subject: [PATCH] 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 >]': filters.h:1444: instantiated from here algparam.h:56: error: 'const class std::vector >' has no member named 'data' --- algparam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(string.data()), string.size(), deepCopy); + Assign(reinterpret_cast(&string[0]), string.size(), deepCopy); } /// \brief Assign contents from a memory buffer