Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
std::function ambiguity vc++
#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
#26.fix
upper_bound With binary_function Visual Studio 2008 Bug?
Zero
#32
VC++
throwing Copyable versus throwing MoveOnly
Struct packing
Implements.cpp
DCapSurfaceDesc
delete from list