Show
Ignore:
Timestamp:
08/19/09 16:54:24 (15 years ago)
Author:
vbarta
Message:

using own error macros (basically copied from IT++, but never aborting)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • library/bdm/shared_ptr.h

    r555 r565  
    1818#include <stdexcept> 
    1919#include <string> 
    20 #include "itpp_ext.h" 
     20#include "bdmerror.h" 
    2121 
    2222namespace bdm { 
     
    123123        */ 
    124124        T *operator->() { 
    125                 it_assert_debug ( payload, "dereferencing NULL" ); 
     125                bdm_assert_debug ( payload, "dereferencing NULL" ); 
    126126                return payload; 
    127127        } 
     
    131131        //! isn't NULL. 
    132132        T &operator*() { 
    133                 it_assert_debug ( payload, "dereferencing NULL" ); 
     133                bdm_assert_debug ( payload, "dereferencing NULL" ); 
    134134                return *payload; 
    135135        } 
     
    147147        //! pointer isn't NULL. 
    148148        const T *operator->() const { 
    149                 it_assert_debug ( payload, "dereferencing NULL" ); 
     149                bdm_assert_debug ( payload, "dereferencing NULL" ); 
    150150                return payload; 
    151151        } 
     
    155155        //! isn't NULL. 
    156156        const T &operator*() const { 
    157                 it_assert_debug ( payload, "dereferencing NULL" ); 
     157                bdm_assert_debug ( payload, "dereferencing NULL" ); 
    158158                return *payload; 
    159159        } 
     
    254254        */ 
    255255        object_ptr ( const shared_ptr<T> &b ) : shared_ptr<T> ( b ) { 
    256                 it_assert_debug ( this->get(), "object_ptr cannot be empty" ); 
     256                bdm_assert_debug ( this->get(), "object_ptr cannot be empty" ); 
    257257        } 
    258258 
     
    262262        */ 
    263263        object_ptr ( T *p ) : shared_ptr<T> ( p ) { 
    264                 it_assert_debug ( p, "object_ptr cannot be empty" ); 
     264                bdm_assert_debug ( p, "object_ptr cannot be empty" ); 
    265265        } 
    266266