Backport make_unique
C++14 has std::make_unique, which is convenient for working with unique_ptrs.
It is sufficient to backport only the overload for non-array types, the
overload for array types isn't used in ndn-cxx.
Change-Id: I200ba24ace6ed25d695f0ebe5e9b459f5dfc7538
Refs: #3093
diff --git a/tests/unit-tests/util/signal.t.cpp b/tests/unit-tests/util/signal.t.cpp
index 153ad91..3b263b4 100644
--- a/tests/unit-tests/util/signal.t.cpp
+++ b/tests/unit-tests/util/signal.t.cpp
@@ -184,7 +184,7 @@
BOOST_AUTO_TEST_CASE(ManualDisconnectDestructed)
{
- unique_ptr<SignalOwner0> so(new SignalOwner0());
+ auto so = make_unique<SignalOwner0>();
int hit = 0;
Connection connection = so->sig.connect([&hit] { ++hit; });