On Thursday, 29 May 2014 at 18:30:28 UTC, Dmitry Olshansky wrote:
29-May-2014 03:52, Dicebot пишет:
On Wednesday, 28 May 2014 at 23:27:34 UTC, bearophile wrote:
This is currently accepted code:
[....]
IMHO something like this is better:
class MyException : Exception
{
private char[20] index_buff; // should be enough for
size_t.max
Why not just save 'size_t' right here, and do formattedWrite in
the toString? Anyway I think this is what exceptions should do
- save the state and only ever format message in toString.
Yep, you are right.