finding type, for which is_constructible holds
问题 I was playing around with templates and was trying to implement following helper. first_constructible<Types..., Args...>::type which would return first type of Types which is constructible from Args... . First problem obviously is having two parameter packs in struct , so I changed usage to first_constructible<std::tuple<Types...>, Args...>::type I've implemented it by splitting tuple types as first and rest, checked using std::is_constructible and recursed if neccessary. template<typename T>