X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=common%2Fmemory.h;h=810db56f024ca2e491c5a8385ab5853c7dd0d5b0;hb=726897adbf881d3b75f171fff24f2b917ba5f05a;hp=35127f674a5845afb653a1581f28fe6367d12303;hpb=cd1a44a41dd64c05de067ba728c285f001b66bf3;p=casparcg diff --git a/common/memory.h b/common/memory.h index 35127f674..810db56f0 100644 --- a/common/memory.h +++ b/common/memory.h @@ -727,6 +727,18 @@ shared_ptr make_shared(P0&& p0, P1&& p1, P2&& p2, P3&& p3, P4&& p4, P5&& p5, return shared_ptr(std::make_shared(std::forward(p0), std::forward(p1), std::forward(p2), std::forward(p3), std::forward(p4), std::forward(p5), std::forward(p6), std::forward(p7), std::forward(p8), std::forward(p9))); } +template +shared_ptr make_shared(P0&& p0, P1&& p1, P2&& p2, P3&& p3, P4&& p4, P5&& p5, P6&& p6, P7&& p7, P8&& p8, P9&& p9, P10&& p10) +{ + return shared_ptr(std::make_shared(std::forward(p0), std::forward(p1), std::forward(p2), std::forward(p3), std::forward(p4), std::forward(p5), std::forward(p6), std::forward(p7), std::forward(p8), std::forward(p9), std::forward(p10))); +} + +template +shared_ptr make_shared(P0&& p0, P1&& p1, P2&& p2, P3&& p3, P4&& p4, P5&& p5, P6&& p6, P7&& p7, P8&& p8, P9&& p9, P10&& p10, P11&& p11) +{ + return shared_ptr(std::make_shared(std::forward(p0), std::forward(p1), std::forward(p2), std::forward(p3), std::forward(p4), std::forward(p5), std::forward(p6), std::forward(p7), std::forward(p8), std::forward(p9), std::forward(p10), std::forward(p11))); +} + template shared_ptr::shared_ptr() : p_(make_shared())