From ca00b34110dc68966c47ca2cbd61e7b12b5132bc Mon Sep 17 00:00:00 2001 From: Oleg Girko Date: Tue, 17 May 2022 23:38:45 +0100 Subject: [PATCH] Fix missing include for std::unique_ptr. This template is defined in , but it was not included. Somehow this was not causing problems with older versions of GCC, probably because it was transitively included by something else. However, this caused an error with GCC 12 that is stricter in this regard. Signed-off-by: Oleg Girko --- src/threshold.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/threshold.cpp b/src/threshold.cpp index 36cef188f50d0b..6ed2d5c0ea92e8 100644 --- a/src/threshold.cpp +++ b/src/threshold.cpp @@ -2,6 +2,8 @@ // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include + #include "threshold.hpp" #include "schemes.hpp" @@ -296,4 +298,4 @@ namespace bls { bool Threshold::Verify(const G1Element& pubKey, const Bytes& vecMessage, const G2Element& signature) { return pThresholdScheme->Verify(pubKey, vecMessage, signature); } -} \ No newline at end of file +}