Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1350

Comment by HolyBlackCat on Can folding expressions for variadic templates be binned, and conversion of argument list to vector used instead?

$
0
0
For starters, please at least use std::array and not std::vector. Second, both of those limit you to the same argument types. Third, you can loop over a pack using an immediately-unvoked lambda: ([&]{std::cout << args << '\n';}(), ...);.

Viewing all articles
Browse latest Browse all 1350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>