diff options
author | Jack Lloyd <[email protected]> | 2019-03-26 10:02:45 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-03-26 10:02:45 -0400 |
commit | d9026650285523ca82e98066d507dbb39240f278 (patch) | |
tree | 32dec8aabe949d15f8efac876dec0738e699676e /src/lib/hash/comb4p/comb4p.cpp | |
parent | 9ad6f1bd3046aba8fd014044819510f53290d02e (diff) |
Work around problem with GCC 4.8
Diffstat (limited to 'src/lib/hash/comb4p/comb4p.cpp')
-rw-r--r-- | src/lib/hash/comb4p/comb4p.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/hash/comb4p/comb4p.cpp b/src/lib/hash/comb4p/comb4p.cpp index a6c40b801..419e00df5 100644 --- a/src/lib/hash/comb4p/comb4p.cpp +++ b/src/lib/hash/comb4p/comb4p.cpp @@ -74,7 +74,8 @@ std::unique_ptr<HashFunction> Comb4P::copy_state() const std::unique_ptr<Comb4P> copy(new Comb4P); copy->m_hash1 = m_hash1->copy_state(); copy->m_hash2 = m_hash2->copy_state(); - return copy; + // work around GCC 4.8 bug + return std::unique_ptr<HashFunction>(copy.release()); } void Comb4P::add_data(const uint8_t input[], size_t length) |