Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f81be4b4 authored by Quentin Khan's avatar Quentin Khan
Browse files

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

parent 2f2aa5a2
No related branches found
No related tags found
No related merge requests found
#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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment