Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
-fno-elide-constructors
#include <iostream> using namespace std; class Foo { public: Foo(){} Foo(int* ptr){cout<<"copy int*"<<endl;} Foo(const Foo& f){cout<<"copy"<<endl;} }; void Set(const Foo){cout<<"Set"<<endl;} void SetC(const Foo&){cout<<"SetC"<<endl;} int main() { Set(Foo(new int)); SetC(new int); // your code goes here return 0; }
run
|
edit
|
history
|
help
0
Test 20(2020)
11340 v3.1
Test 11(2020)
Dar
Kth smallest element
triplets from vector
II-32bit
Radix sort
HelloWorldExample
Deque RotateString