Compile the C code as C++, and you get exactly the same result.
Type: Posts; User: Doodle77
Compile the C code as C++, and you get exactly the same result.
I'm not trying to say that I could magically implement everything in STL in less space, I'm just saying that the mere use a string or vector in your c++ program adds 52kb of STL code.
#include <vector>
#include <string>
int main() {
std::vector<int> v(10);
for (int i=0;i<10;i++) {
v[i] = i*(i+i^3);
}
reverse(v.begin(), v.end());
std::string q = "omgomgom";
He means this:
#include <iostream>
int main() {
std::cout << "STL adds bloat. Lots of it.";
return 0;
}
8109
gcc version 3.4.2 (mingw-special)