LeMonADE-project / LeMonADE

Library for Monte Carlo Simulation applying the Bond Fluctuation Model
Other
3 stars 11 forks source link

std::auto_ptr is depricated in c++ 11 #70

Open MartinWenge opened 7 years ago

MartinWenge commented 7 years ago

in some files the std::auto_ptr is used and should be replaced in newer standards by std::unique_ptr or maybe std::shared_ptr. Should we change this or hope that auto_ptr will still be supported?

hrabbel commented 7 years ago

This is related to issue #57 , I suppose. It appears auto_ptr is used in the Loki-related headers. So, if we decide to remove the use of Loki, then this will also be resolved. It seems it's about time to seriously discuss this over a coffee soon...

MartinWenge commented 7 years ago

Ok, but I'm quite sure this is going to be hard work :o)

Bondoki commented 7 years ago

Can you point to an explicit usage of that type of pointer? All pointer definition should be well defined if we stick with the LOKI-library see extern/SmartPtr.h