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
stack::swap_30-Seconds-of-C++
stl_sizeof
test yield
Template arguments pack
Example of range-base for loop
inversion of array using merge sort
SOS DP
template inhertinace
1744. Can You Eat Your Favorite Candy on Your Favorite Day?
Sum of digits of number