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:
parent
ca7c5e08c1
commit
6228b6b950
2 changed files with 18 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue