Changes in external/fastjet/SharedPtr.hh [1d208a2:35cdc46] in git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
external/fastjet/SharedPtr.hh
r1d208a2 r35cdc46 3 3 4 4 //FJSTARTHEADER 5 // $Id: SharedPtr.hh 4051 2016-03-03 14:33:38Z soyez$5 // $Id: SharedPtr.hh 3433 2014-07-23 08:17:03Z salam $ 6 6 // 7 7 // Copyright (c) 2005-2014, Matteo Cacciari, Gavin P. Salam and Gregory Soyez … … 38 38 // for our SharedPtr simply to be derived from the STL TR1 one. 39 39 // #define __FASTJET_USETR1SHAREDPTR 40 41 #include "fastjet/internal/deprecated.hh"42 40 43 41 #ifdef __FASTJET_USETR1SHAREDPTR … … 74 72 SharedPtr(const SharedPtr<T> & t) : std::tr1::shared_ptr<T>(t) {} 75 73 // for some reason operator() doesn't get inherited 76 #ifdef FASTJET_HAVE_EXPLICIT_FOR_OPERATORS77 explicit78 #endif79 74 inline operator bool() const {return (this->get()!=NULL);} 80 75 /// return the pointer we're pointing to … … 216 211 } 217 212 218 /// return the pointer we're pointing to 219 /// 220 /// Since FastJet 3.2.0, this is depracated since it is no longer 221 /// part of std::shared_ptr<T>. Use SharedPtr<T>::get() instead 222 FASTJET_DEPRECATED_MSG("Use SharedPtr<T>::get() instead") 213 /// return the pointer we're pointing to 223 214 T* operator ()() const{ 224 215 if (_ptr==NULL) return NULL; … … 266 257 /// conversion to bool 267 258 /// This will allow you to use the indirection nicely 268 #ifdef FASTJET_HAVE_EXPLICIT_FOR_OPERATORS269 explicit270 #endif271 259 inline operator bool() const{ 272 260 return (get()!=NULL);
Note:
See TracChangeset
for help on using the changeset viewer.