Project

General

Profile

Feature #3093

Updated by Junxiao Shi over 8 years ago

[`std::make_unique`](http://en.cppreference.com/w/cpp/memory/unique_ptr/make_unique) since C++14 is convenient for working with `unique_ptr`s. 
 We should backport it into ndn-cxx for use in C++11. 

     template<class T, class... Args> 
     unique_ptr<T> 
     make_unique(Args&&... args); 

 It's sufficient to backport only this overload for non-array type.   
 The overload for array types isn't used in ndn-cxx and is unnecessary. 

 This issue should change does not involve changing existing code to use `make_unique`.   
 All However, all new and updated code should use `make_unique` after this issue closes.

Back