chromium / subspace

A concept-centered standard library for C++20, enabling safer and more reliable products and a more modern feel for C++ code.; Also home of Subdoc the code-documentation generator.
https://suslib.cc
Apache License 2.0
89 stars 15 forks source link

Error with context #402

Open danakj opened 1 year ago

danakj commented 1 year ago

Provide a context method on Error which can throw it away or use it, and implement it for Box and std::string?

Storing context is very important use case given by anyhow but C++ can't just gain it in that way, without replacing all the Error types, so we should build this into Error. (h/t @Kangz for pointing this out in dawn)