Is it possible to throw an instance of std::bad_cast
? The underlying question is not whether it is good or not to do this, it is only about whether std::bad_cast
has a default constructor or not.
Thanks
18.5.2的C ++标准说“是”,它有一个无参数的构造函数。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.