12 Feb
2018
12 Feb
'18
8:36 p.m.
Not if the error code's destructor deletes its category.
Well it doesn't.
You misunderstand me. I'm saying that there are people who make error categories via a factory, one per payload carried, and they attach them to a custom error_code whose destructor cleans up the bespoke error category. At least, this is the gist of what Charley told me. I could be wrong, memory could be faulty. I'm the wrong person to say on this. Maybe Charley will pipe in? I'd also loop in Chris on this. You might remember he said he's got custom categories retaining state back when he was arguing against fixing `if(ec)`. Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/