https://issues.apache.org/ooo/show_bug.cgi?id=122482
--- Comment #5 from Ariel Constenla-Haile <[email protected]> --- (In reply to jsc from comment #3) > On Unix I have to bundle the boost headers now, this is not so nice This breaks when SYSTEM_BOOST=YES On the other hand, there might not be many people using the SDK for building C++ stuff, at least compared to the amount that download it just for the HTML API reference, or Java extensions. For people who use the SDK to build C++ code, adding boost as an external dependency, configurable while setting the SDK environment, might not be a burden. For the average SDK user, adding boost is just duplicating the size with stuff s/he will never use (the RPM package is now 17 MB, once installed it is 176 MB, 76 MB only for boost). > but will > hope fully change if we can switch on Unix to the compiler stl as well. For the hash_map header I played a little with defines: #define GCC_VERSION (__GNUC__ * 10000 \ + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #if GCC_VERSION >= 40300 # include <unordered_map> # define hash_map std::unordered_map #elif GCC_VERSION >= 40000 # include <tr1/unordered_map> # define hash_map std::tr1::unordered_map #else # include <ext/hash_map> # define hash_map __gnu_cxx::hash_map #endif Centos 5 has <tr1/unordered_map>, besides <ext/hash_map> Fedora 18 has also <unordered_map> (requires compiling with -std=c++11) -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.
