Skip to content

Commit

Permalink
Fix missing include for std::unique_ptr.
Browse files Browse the repository at this point in the history
This template is defined in <memory>, 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 <ol@infoserver.lv>
  • Loading branch information
Oleg Girko committed May 19, 2022
1 parent cc53ca3 commit ca00b34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/threshold.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 <memory>

#include "threshold.hpp"

#include "schemes.hpp"
Expand Down Expand Up @@ -296,4 +298,4 @@ namespace bls {
bool Threshold::Verify(const G1Element& pubKey, const Bytes& vecMessage, const G2Element& signature) {
return pThresholdScheme->Verify(pubKey, vecMessage, signature);
}
}
}

0 comments on commit ca00b34

Please sign in to comment.