From e88a08121360fe59a7f7bda81dbded3567041598 Mon Sep 17 00:00:00 2001 From: Marco Bubke Date: Thu, 21 Sep 2017 11:37:35 +0200 Subject: [PATCH] Utils: Import std::experimental::in_place to Utils namespace It is needed to construct an optional in place. Change-Id: I92e6bec6a33b469d806d3144ea9eb8c64d25580f Reviewed-by: Tobias Hunger Reviewed-by: Tim Jenssen --- src/libs/utils/optional.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/utils/optional.h b/src/libs/utils/optional.h index 1960297de43..be07015d3d5 100644 --- a/src/libs/utils/optional.h +++ b/src/libs/utils/optional.h @@ -41,6 +41,8 @@ namespace Utils { using std::experimental::optional; // --> Utils::nullopt using std::experimental::nullopt; +// --> Utils::inplace +using std::experimental::in_place; // TODO: make_optional is a copy, since there is no sensible way to import functions in C++ template