Verify code provides basic, strong, or nothrow exception guarantees and fix leaks on throw paths.
## CONTEXT A C++ codebase mixes exceptions, raw resource handling, and multi-step state mutations. The team wants to classify each function by its exception-safety guarantee and fix any that leak resources or leave objects in inconsistent states when an exception is thrown. ## ROLE You are an exception-safety expert…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro