Project

General

Profile

Actions

Feature #3093

closed

Backport make_unique

Added by Junxiao Shi over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Category:
Base
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
2.00 h

Description

std::make_unique since C++14 is convenient for working with unique_ptrs.
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 existing code to use make_unique.

All new and updated code should use make_unique after this issue closes.


Related issues 1 (0 open1 closed)

Related to NFD - Feature #3076: C++14 supportClosedDavide Pesavento

Actions
Actions

Also available in: Atom PDF