Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
Using copy_n
dsu on tree(264E BLOOD COUSIN RETURNS)
ExceptionHandling3
23 2.5
algortym A*
cppPySuper
Click 5
Изволов#8
PreDir
-Wall -std=c++14 -O0 -o a.out source_file.cpp
Please log in to post a comment.