src/cpp-common: add bt2_common::makeUnique()
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 2 Mar 2022 18:47:25 +0000 (13:47 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 11 Sep 2023 15:24:02 +0000 (11:24 -0400)
commitfa5e9d5714433f38d2b3d8e6f1422a223d781125
tree75fa654ebffb057f393a77d941032b0c724aaa99
parentdf34434fdf530a7344e2582da0ee5bcbf56567ca
src/cpp-common: add bt2_common::makeUnique()

This is our equivalent of std::make_unique() (introduced in C++14) for
C++11.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Ic58341f7419ac447f83401358ca0884151246dc8
Reviewed-on: https://review.lttng.org/c/babeltrace/+/7465
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/10815
Tested-by: jenkins <jenkins@lttng.org>
src/cpp-common/Makefile.am
src/cpp-common/make-unique.hpp [new file with mode: 0644]
This page took 0.024077 seconds and 4 git commands to generate.