Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
std::function ambiguity gcc
#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
Temp
SEJM BLURWA
gcc set_terminate
break.cpp
Proyecto1
MinCostKStops_DFS
10954
Parenthesis checker
team name
Изволов#8