Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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
std::function ambiguity clang
Rounding float to nearest 1000 (fixed)
back_inserter example
sort
ternary test c++14
Dash-D compiler flag example
Tree Traversal and Node
Magic, why 1 2?
problem_name_4
Dynamically allocated array in unique_ptr with custom deleter.