STIR  6.2.0
Namespaces
unique_ptr.h File Reference

Import of std::unique_ptr into the stir namespace, together with work-arounds for other compilers. More...

#include "stir/common.h"
#include <memory>

Go to the source code of this file.

Namespaces

 stir
 Namespace for the STIR library (and some/most of its applications)
 

Detailed Description

Import of std::unique_ptr into the stir namespace, together with work-arounds for other compilers.

If std::unique doesn't exist, we will define unique_ptr to auto_ptr. This is dangerous of course. If you have problems with that, tell your compiler to use at least C++11 (normally by adding the -std=c++11 flag)

Author
Kris Thielemans