Merge pull request #6431 from NixOS/unbreak-my-build

Make the default SQLiteError constructor public
This commit is contained in:
Eelco Dolstra 2022-04-21 10:41:07 +02:00 committed by GitHub
commit ebad9213f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,10 +106,10 @@ struct SQLiteError : Error
throw_(db, hintfmt(fs, args...)); throw_(db, hintfmt(fs, args...));
} }
protected:
SQLiteError(const char *path, int errNo, int extendedErrNo, hintformat && hf); SQLiteError(const char *path, int errNo, int extendedErrNo, hintformat && hf);
protected:
template<typename... Args> template<typename... Args>
SQLiteError(const char *path, int errNo, int extendedErrNo, const std::string & fs, const Args & ... args) SQLiteError(const char *path, int errNo, int extendedErrNo, const std::string & fs, const Args & ... args)
: SQLiteError(path, errNo, extendedErrNo, hintfmt(fs, args...)) : SQLiteError(path, errNo, extendedErrNo, hintfmt(fs, args...))