1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

Discuss re-entrant errors and design

This commit is contained in:
Guillaume Maudoux 2022-12-20 12:06:27 +01:00
parent ca7c5e08c1
commit 6228b6b950
2 changed files with 18 additions and 0 deletions

View file

@ -203,6 +203,9 @@ public:
throw std::move(error);
}
// This is dangerous, but gets in line with the idea that error creation and
// throwing should not allocate on the stack of hot functions.
// as long as errors are immediately thrown, it works.
ErrorBuilder * errorBuilder;
template<typename... Args>