4 May
2013
4 May
'13
7:31 p.m.
Le 04/05/13 20:50, Rob Stewart a écrit :
On May 4, 2013, at 12:16 PM, "Vicente J. Botet Escriba"
wrote: Le 04/05/13 17:57, Anurag Kalia a écrit :
I have a question here. Why are we not throwing the exception from set_if_valid_date() itself? Why did we include noexcept in its definition?
set_if_valid_date allows the user make changes without using exceptions. This is useful on some contexts. You could add a no_throw_t overload, or an error_code overload.
Yes, there are a lot of alternatives to this simple function. For the time been I have set_if_valid_date. This doesn't mean that I could not change,but this is not the major problem I have to fix. Best, Vicente