Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
nontype template parameter produced with decltype for function
#include <iostream> template <typename T, T nontype> struct CL { void call() { nontype(123); } }; void f(int n) { std::cout << n << std::endl; } CL<void(*)(int), f> cl7; using df = decltype(f); CL<df, f> cl8; // << error int main() { cl8.call(); }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
appliWall
Simple Generic Data Type Example
user defined exception
Throttle Example using circular queue (push all but 2 less than maxSize; then pop all but 2 less than current size)
11/18
Assignment Operator Example
Te
projecte1
Member inheritance
C++ Standard Template Library
Please log in to post a comment.