C++相談室 part36
■ このスレッドは過去ログ倉庫に格納されています
0348デフォルトの名無しさん
NGNGchar*ではcatch出来ないのが正しい。const char*ではcatchできる。
ISO/IEC 14882:1998 15.1.3
The temporary object created for a throwexpression that is
a string literal is never of type char* or wchar_t*;that is,
the special conversions for string literals from the types
“array of const char” and “array ofconst wchar_t” to the types
“pointer to char” and “pointer to wchar_t”, respectively,
are never applied to a throwexpression.
■ このスレッドは過去ログ倉庫に格納されています