mohitanand001 / underscore_cpp

underscore_cpp
MIT License
7 stars 30 forks source link

<bits/stdc++.h> what is it used for exactly? that header includes a ton of others #62

Closed gubatron closed 6 years ago

gubatron commented 6 years ago

anyway to get rid of this dependency or use something more granular includes for what's actually needed that works out of the box in non-Linux C++ compilers?

It seems like stdc++.h is not really supported outside GNU. In the meantime switched to Ubuntu, but it'd be cooler if this was cross-compilable without having to add preprocessor hacks #IFDEF __APPLE__, #IFDEF __WIN32...

https://discuss.codechef.com/questions/81564/bitsstdch-does-not-work-in-mac-os

mateosss commented 6 years ago

That header is often used for quick prototypes. It just includes everything you may need. It is only included in the testing.cpp file (which I think, is not intended to be in the repo, because there is a suspicious tsting.cpp entry in the .gitignore), so ultimately, it is not a requirement for using the library.

Nonetheless, it may be removed, as it makes the runn.sh file to be much slower. Also it would be nice to have a proper set of tests and use cases.