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:
parent
7348653ff4
commit
f186000367
11 changed files with 19 additions and 18 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue