Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
a parameter pack
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 template<class...T> void do_nothing(T...) {} template<class...F> void pol(F const&...f) { [=] { auto x = 42; //int x = 42; do_nothing([&] {return f+x; }...); }; } int main() { pol(1,2,3); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
multiplie linked list numbers
Hangman
bool behaviour (convertion/promotion) for logical and artihmetic operators
Multiple inheritance of empty classes - sizeof
hangman
Error with move capture of a const ref in a lambda function
VC++ '-flag Fail
Revers find file in windows
ADL of operator expression & unqualified function call
parantheses matching using stack in C++ - test
Please log in to post a comment.