Этот баннер — требование Роскомнадзора для исполнения 152 ФЗ.
«На сайте осуществляется обработка файлов cookie, необходимых для работы сайта, а также для анализа использования сайта и улучшения предоставляемых сервисов с использованием метрической программы Яндекс.Метрика. Продолжая использовать сайт, вы даёте согласие с использованием данных технологий».
Политика конфиденциальности
|
|
|
странное задание из теста
|
|||
|---|---|---|---|
|
#18+
Вопрос: if a function throws an exception that is not listed in the function exception-specification list and noexcept is not specified, then 1) unexpected() is immediately invoked 2) terminate() is immediately invoked 3) abort() is immediately invoked 4) unhandled() is immediately invoked 5) the exception is passed up the handler chain По мне ответ должен быть и 1) и затем 2) unexpected() is called if a function throws an exception that is not listed in an exception specification. Calls unexpected(), which calls terminate() По мнению автора вопроса, ответ должен быть 1 ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2018, 05:41 |
|
||
|
странное задание из теста
|
|||
|---|---|---|---|
|
#18+
Если в модуле, который вызвает функцию, прописан обработчик exception вида Код: plaintext 1. 2. 3. 4. 5. 6. 7. то terminate до этого обработчика вызывать нельзя. Поэтому автор прав. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2018, 11:24 |
|
||
|
странное задание из теста
|
|||
|---|---|---|---|
|
#18+
polin11, http://en.cppreference.com/w/cpp/language/except_spec cppreferenceIf the function throws an exception of the type not listed in its exception specification, the function std::unexpected is called. The default function calls std::terminate, but it may be replaced by a user-provided function (via std::set_unexpected) which may call std::terminate or throw an exception. If the exception thrown from std::unexpected is accepted by the exception specification, stack unwinding continues as usual. If it isn't, but std::bad_exception is allowed by the exception specification, std::bad_exception is thrown. Otherwise, std::terminate is called. Ответ (1) Но это уже устарело. exception specification depricated. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.03.2018, 13:01 |
|
||
|
|

start [/forum/topic.php?fid=57&fpage=21&tid=2017926]: |
0ms |
get settings: |
10ms |
get forum list: |
13ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
39ms |
get topic data: |
12ms |
get forum data: |
3ms |
get page messages: |
41ms |
get tp. blocked users: |
1ms |
| others: | 287ms |
| total: | 412ms |

| 0 / 0 |
