Re: Стандартные исключения
От: Alxndr Германия http://www.google.com/profiles/alexander.poluektov#buzz
Дата: 14.11.07 12:21
Оценка:
Здравствуйте, Xchllataa, Вы писали:

X>Чем отличаются друг от друга следующие исключения?

X>domain_error
X>out_of_range
X>range_error

X>Насколько я понял, все они значат одно и тоже — значение за пределами допустимого диапазона.


Из Стандарта 2003:

19.1.2 The class domain_error defines the type of objects thrown as exceptions by the implementation to
report domain errors.

19.1.7 The class range_error defines the type of objects thrown as exceptions to report range errors in internal
computations.

19.1.5 The class out_of_range defines the type of objects thrown as exceptions to report an argument value
not in its expected range.

 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.