Ignore:
Timestamp:
06/13/18 16:48:53 (6 years ago)
Author:
oabramkina
Message:

Replacing Boost's unordered_map and shared_pointer by its STL counterparts.

Two notes for Curie:

  • one can see the content of unordered_map with ddt only if XIOS has been compiled with gnu
  • XIOS will not compile any more with pgi (all available versions use old STL which are not up to the c++11 norms)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/object_template.hpp

    r1330 r1542  
    7171 
    7272         /// Accesseur statique /// 
    73          static std::vector<boost::shared_ptr<DerivedType> > & 
     73         static std::vector<std::shared_ptr<DerivedType> > & 
    7474            GetAllVectobject(const StdString & contextId); 
    7575 
     
    8383         static T* get(const string& contextId, const string& id) ; 
    8484         T* get(void) ; 
    85          shared_ptr<T> getShared(void) ; 
    86          static shared_ptr<T> getShared(const T* ptr) ; 
     85         std::shared_ptr<T> getShared(void) ; 
     86         static std::shared_ptr<T> getShared(const T* ptr) ; 
    8787 
    8888         static T* create(const string& id=string("")) ; 
     
    108108         static xios_map<StdString, 
    109109                xios_map<StdString, 
    110                 boost::shared_ptr<DerivedType> > > AllMapObj; 
     110                std::shared_ptr<DerivedType> > > AllMapObj; 
    111111         static xios_map<StdString, 
    112                 std::vector<boost::shared_ptr<DerivedType> > > AllVectObj; 
     112                std::vector<std::shared_ptr<DerivedType> > > AllVectObj; 
    113113 
    114114         static xios_map< StdString, long int > GenId ; 
Note: See TracChangeset for help on using the changeset viewer.