Using the C++11 standard you are now able to implement a instanceof function without using dynamic_cast like this: if (dynamic_cast<B*>(aPtr) != nullptr) ...
確定! 回上一頁