scipr-lab / libsnark

C++ library for zkSNARKs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: ‘std::__debug::vector<pb_variable<FieldT>>’ is an inaccessible base of ‘variable_array<FieldT>’

gargarchit opened this issue · comments

Here this should be declared as public in pb_variable

class pb_variable_array : public std::vector<pb_variable<FieldT> >
instead of
class pb_variable_array : private std::vector<pb_variable<FieldT> >

Also,

class pb_linear_combination_array : public std::vector<pb_linear_combination<FieldT> >
instead of
class pb_linear_combination_array : private std::vector<pb_linear_combination<FieldT> >

Here, all members of std::vector<pb_variable> are private, so you can't access them from outside of pb_variable_array.

I have opened a PR for this #176

#176 merged in staging branch, closing issue