Commit f81be4b4 authored by Quentin Khan's avatar Quentin Khan

Add simple c++14 make_unique replacement when compiling with c++11

parent 2f2aa5a2
#if __cplusplus < 201402L
#ifndef _SCALFMM_MAKE_UNIQUE_HPP_
#define _SCALFMM_MAKE_UNIQUE_HPP_
#include <utility>
#include <memory>
namespace std {
template<class T, class... Args>
std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
}
#endif
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment