From 7728fbf8ebbac349bab487bda842cbd8c073848f Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 22 May 2017 15:43:15 -0400 Subject: Fix for old GCC and Clang They don't understand unique_ptr to unique_ptr without help https://stackoverflow.com/questions/22018115/converting-stdunique-ptrderived-to-stdunique-ptrbase --- src/lib/hash/skein/skein_512.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/hash/skein') diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp index a3bbde9a7..eaa3090a4 100644 --- a/src/lib/hash/skein/skein_512.cpp +++ b/src/lib/hash/skein/skein_512.cpp @@ -47,7 +47,7 @@ std::unique_ptr Skein_512::copy_state() const copy->m_buffer = this->m_buffer; copy->m_buf_pos = this->m_buf_pos; - return copy; + return std::move(copy); } void Skein_512::clear() -- cgit v1.2.3