openfheorg / openfhe-development

This is the development repository for the OpenFHE library. The current (stable) version is v1.2.1 (released on September 10, 2024).
BSD 2-Clause "Simplified" License
746 stars 189 forks source link

Missing copy assignment operators on upgrading to 1.1.3 #701

Closed j2kun closed 7 months ago

j2kun commented 7 months ago

Somewhere between 1.0.0 and 1.1.3 BinFHEContext lost its copy assignment operator, which we use in https://github.com/google/fully-homomorphic-encryption during code generation.

Can this be restored, or an alternative approach be suggested? Using std::move also fails

fully_homomorphic_encryption/transpiler/data/primitives_openfhe.types.h:1136:9: 
error: object of type 'lbcrypto::BinFHEContext' cannot be assigned because
its copy assignment operator is implicitly deleted
 1136 |     cc_ = std::move(rhs.cc_); 
dsuponitskiy commented 7 months ago

The fix has been added to dev. It will be available in the main branch upon the next release