Skip to content
  • Andreas Hansson's avatar
    b4197a38
    mem: Use shared_ptr for Ruby Message classes · b4197a38
    Andreas Hansson authored
    This patch transitions the Ruby Message and its derived classes from
    the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no
    changes in behaviour, and the code modifications are mainly replacing
    "new" with "make_shared".
    
    The cloning of derived messages is slightly changed as they previously
    relied on overriding the base-class through covariant return types.
    b4197a38
    mem: Use shared_ptr for Ruby Message classes
    Andreas Hansson authored
    This patch transitions the Ruby Message and its derived classes from
    the ad-hoc RefCountingPtr to the c++11 shared_ptr. There are no
    changes in behaviour, and the code modifications are mainly replacing
    "new" with "make_shared".
    
    The cloning of derived messages is slightly changed as they previously
    relied on overriding the base-class through covariant return types.
Loading