Ticket #7395: boost2.patch

File boost2.patch, 852 bytes (added by phishman3579@…, 10 years ago)

patch to fix

  • boost/serialization/smart_cast.hpp

    old new  
    159159                static T cast(U * u){
    160160                    T tmp = dynamic_cast< T >(u);
    161161                    #ifndef NDEBUG
    162                         if ( tmp == 0 ) throw std::bad_cast();
     162                        if ( tmp == 0 ) throw_exception(std::bad_cast());
    163163                    #endif
    164164                    return tmp;
    165165                }
     
    201201            static T cast(U * u){
    202202                T tmp = dynamic_cast< T >(u);
    203203                #ifndef NDEBUG
    204                     if ( tmp == 0 ) throw std::bad_cast();
     204                    if ( tmp == 0 ) throw_exception(std::bad_cast());
    205205                #endif
    206206                return tmp;
    207207            }