Bezug zu this question ich mich gefragt, ob so etwas wie dies auf einfache Art und Weise boost erreichbar wäre :: hana:boost :: hana Tupel Auspacken für variadische Vorlage Instanziierung
#include <boost/hana.hpp>
#include <boost/hana/unpack.hpp>
namespace hana = boost::hana;
template<typename ... T>
struct A {};
int main() {
auto my_tuple = hana::tuple_t<int, double, float>;
// Is there any way to unpack my_tuple as template arguments for A?
// Something like
using MyStruct = A<hana::unpack_types(my_tuple)...>;
static_assert(std::is_same<MyStruct, A<int, double, float>>::value, "Ooops!");
}
Mögliche Duplikate von http://StackOverflow.com/a/7858971/5922757 – Jezor