Function lbcrypto::SetOpenFHEErrStream

Function Documentation

std::ostream &lbcrypto::SetOpenFHEErrStream(std::ostream &os)

Redirects the diagnostic error channel (OPENFHE_DIAGNOSTIC_ERR, std::cerr by default) to another stream. The stream must outlive any later OpenFHE diagnostic; call once during initialization.

Parameters

os – stream to install

Returns

the stream that was previously installed, so the caller can restore it