From 33cc288d8fe3c1178c71703dc59be110cb2f5c20 Mon Sep 17 00:00:00 2001 From: Stanley Pinchak Date: Sat, 2 Apr 2022 13:06:33 -0500 Subject: [PATCH] Add in_place constructor --- include/NamedType/named_type_impl.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/NamedType/named_type_impl.hpp b/include/NamedType/named_type_impl.hpp index f532392..fd0922c 100644 --- a/include/NamedType/named_type_impl.hpp +++ b/include/NamedType/named_type_impl.hpp @@ -77,7 +77,10 @@ class FLUENT_EBCO NamedType : public Skills>. { return value_; } - + template + constexpr NamedType(in_place_t tag, Args&&... args) noexcept(std::is_nothrow_constructible::value): value_(std::forward(args)...) + { + } FLUENT_NODISCARD constexpr std::remove_reference_t const& get() const noexcept { return value_;