From 5c5f596d12e95b5249a82df235e03151976389a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 15 Jan 2021 20:43:59 +0100 Subject: [PATCH] twin: Add constructor from two objects --- include/boost/intrusive/detail/twin.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/intrusive/detail/twin.hpp b/include/boost/intrusive/detail/twin.hpp index e375201..b778732 100644 --- a/include/boost/intrusive/detail/twin.hpp +++ b/include/boost/intrusive/detail/twin.hpp @@ -35,6 +35,10 @@ struct twin : first(), second() {} + twin(const type &f, const type &s) + : first(f), second(s) + {} + T first; T second; };