missing comma

This commit is contained in:
Thibault Kruse 2016-08-11 17:00:08 +02:00
parent dc683521ee
commit 0b15a43c54

View File

@ -4945,7 +4945,7 @@ To avoid repetition and accidental differences.
int y; int y;
public: public:
Date(int ii, Month mm, year yy) Date(int ii, Month mm, year yy)
:i{ii}, m{mm} y{yy} :i{ii}, m{mm}, y{yy}
{ if (!valid(i, m, y)) throw Bad_date{}; } { if (!valid(i, m, y)) throw Bad_date{}; }
Date(int ii, Month mm) Date(int ii, Month mm)
@ -4964,7 +4964,7 @@ The common action gets tedious to write and may accidentally not be common.
int y; int y;
public: public:
Date2(int ii, Month mm, year yy) Date2(int ii, Month mm, year yy)
:i{ii}, m{mm} y{yy} :i{ii}, m{mm}, y{yy}
{ if (!valid(i, m, y)) throw Bad_date{}; } { if (!valid(i, m, y)) throw Bad_date{}; }
Date2(int ii, Month mm) Date2(int ii, Month mm)