12 Feb
2018
12 Feb
'18
11:03 p.m.
On 13/02/2018 09:40, Niall Douglas wrote:
So, I'm fine with dropping the 'virtual dtor' for 'error_category'.
Ok, cool. For the record, proposed `status_code` is templated and thus can carry arbitrary payload, thus solving that problem in `error_code`.
Bear in mind that templating can itself be a barrier to usage, especially when people want to keep implementation in cpp files rather than making everything into templates. (I'm not saying that templating is the wrong choice, but this was probably one of the motivations for current error_code not being a template.)