1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

Add some noexcepts

This is to assert that callback functions should never throw (since
the context in which they're called may not be able to handle the
exception).
This commit is contained in:
Eelco Dolstra 2019-09-03 13:00:55 +02:00
parent 7348653ff4
commit f186000367
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
11 changed files with 19 additions and 18 deletions

View file

@ -131,7 +131,7 @@ protected:
}
void getFile(const std::string & path,
Callback<std::shared_ptr<std::string>> callback) override
Callback<std::shared_ptr<std::string>> callback) noexcept override
{
checkEnabled();