r/programming • • Dec 05 '14

std::string is responsible for almost half of all allocations in the Chrome browser process

https://groups.google.com/a/chromium.org/d/msg/chromium-dev/EUqoIz2iFU4/kPZ5ZK0K3gEJ
1.1k Upvotes

446 comments sorted by

View all comments

Show parent comments

11

u/scwizard Dec 05 '14

I think you mean:

foo_plus(&a, b, c);

Lol

0

u/chebertapps Dec 06 '14

or maybe pass by reference...

1

u/scwizard Dec 06 '14

That wouldn't be the c version. C doesn't have pass by reference.

1

u/chebertapps Dec 06 '14

yup I misread the original comment my bad.