Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
std::function ambiguity clang
#include <functional> #include <memory> struct Message {}; void f(std::function<void(std::shared_ptr<Message>)> arg) {} void f(std::function<void(std::unique_ptr<Message>)> arg) {} int main(void) { auto f1 = [](std::shared_ptr<Message>) -> void {}; auto f2 = [](std::unique_ptr<Message>) -> void {}; f(f1); f(f2); return 0; }
run
|
edit
|
history
|
help
0
range based for loop temporary object lifetime issue example
Throttle Example (Send two requests every two seconds)
Template arguments may contain calls to constexpr functions.
Mi primer ejemplo con RexTester colgado en My wall
Graphs Iteration1 Undirected.
2574 EC
BinaryGap, C++ - Find longest sequence of zeros in binary representation of an integer.
INHERIT_CTORS default constructor
regimeketopdfb
Simple Generic Data Type Example