more generic template parameter of precomputeG2

dev
MITSUNARI Shigeo 7 years ago
parent 5564e669c0
commit cadc408f01
  1. 4
      include/mcl/bn.hpp

@ -1738,8 +1738,8 @@ inline void precomputeG2(std::vector<Fp6>& Qcoeff, const G2& Q)
precomputeG2(Qcoeff.data(), Q);
}
#endif
template<class T, template<class T>class Array>
void precomputeG2(bool *pb, Array<T>& Qcoeff, const G2& Q)
template<class Array>
void precomputeG2(bool *pb, Array& Qcoeff, const G2& Q)
{
*pb = Qcoeff.resize(BN::param.precomputedQcoeffSize);
if (!*pb) return;

Loading…
Cancel
Save