Hello!
Recently I've found OB can't be compiled with GCC 4.4 and Boost enabled because
of redefinition of unordered_map in unique.cpp
I propose to make custom header "unordered_map.h" to prevent different
conditions in different files, e.g.
#ifdef _MSC_VER
#include <unordered_map>
#elif (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
#include <tr1/unordered_map>
#else
#ifdef USE_BOOST
#include <boost/tr1/unordered_map.hpp>
#else
#define NO_UNORDERED_MAP
#include <map>
#endif
#endif
and check for NO_UNORDERED_MAP later
Also, in obmolecformat.h <hash_map> is used for MSVC. Are both variants
(hash_map and unordered_map) available for all versions? I think hash_map is
older
Also, I think we should prepare for c++0x standard (last time I tried to
compile OB with c++0x compilation failed with lots of errors)
--
Regards,
Konstantin
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
OpenBabel-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbabel-devel