diff --git a/datatest.cpp b/datatest.cpp index 310603b1..8d7503e2 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -281,7 +281,7 @@ public: { m_temp.clear(); PutDecodedDatumInto(m_data, name, StringSink(m_temp).Ref()); - reinterpret_cast(pValue)->Assign(BytePtr(m_temp), BytePtrSize(m_temp), false); + reinterpret_cast(pValue)->Assign(ConstBytePtr(m_temp), BytePtrSize(m_temp), false); } else throw ValueTypeMismatch(name, typeid(std::string), valueType);