Re: check that a member function really operates on an object of the expected type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Lance Taylor skrev:
> If you are instead holding a reference to a partially but not completely
> destroyed object, then I agree that dynamic_cast can work correctly.
> However, I personally don't see a sufficient reason to add yet another
> compiler option to support an arguably broken programming style.
>   

The purpose of the compiler option is certainly not to support a broken
programming style, but to detect it! (I recently fixed 2 such bugs in a
software with over 100 000 lines of C++ and would appreciate some help
to see if there are more of them.)

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux