Remove reference from m_hash_init_point

Identified by kayabaNerve, patch suggested by j-berman.
This commit is contained in:
Luke Parker 2024-05-24 19:24:38 -04:00 committed by j-berman
parent a1ee603132
commit 988c4eae40

View File

@ -70,7 +70,9 @@ class Curve
{
//constructor
public:
Curve(const typename C::Point &hash_init_point):
// This doesn't have a reference as doing so delays initialization and borks
// it
Curve(const typename C::Point hash_init_point):
m_hash_init_point{hash_init_point}
{};
@ -95,7 +97,7 @@ public:
//member variables
public:
const typename C::Point &m_hash_init_point;
const typename C::Point m_hash_init_point;
};
//----------------------------------------------------------------------------------------------------------------------
class Helios final : public Curve<HeliosT>