[config] disabling hash_map/set by #define BOOST_NO_HASH

Hi ! After upgrading to gcc-4.3 I got annoyed by the myriads of deprecated warnings about "hash_map" and "hash_set" especially from the BGL code. I tried to get rid of those by simply adding #define BOOST_NO_HASH to the command line and it worked. Unfortunately, it seems that trunk config does not detect hash support with msvc-8.0 and this compiler then bailed out with a macro redefinition error at config/suffix.hpp :-(( Patch to add a check for an already defined BOOST_NO_HASH (and for BOOST_NO_SLIST) attached. Comments ? Ok to commit ? Better ideas to disable hash support ? Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !

Juergen Hunold wrote:
Hi !
After upgrading to gcc-4.3 I got annoyed by the myriads of deprecated warnings about "hash_map" and "hash_set" especially from the BGL code. I tried to get rid of those by simply adding #define BOOST_NO_HASH to the command line and it worked. Unfortunately, it seems that trunk config does not detect hash support with msvc-8.0 and this compiler then bailed out with a macro redefinition error at config/suffix.hpp :-(( Patch to add a check for an already defined BOOST_NO_HASH (and for BOOST_NO_SLIST) attached. Comments ? Ok to commit ? Better ideas to disable hash support ?
No real better ideas, but yes please do commit. John.

Hi John ! On Wednesday 20 August 2008 13:38:24 John Maddock wrote:
Juergen Hunold wrote:
Patch to add a check for an already defined BOOST_NO_HASH (and for BOOST_NO_SLIST) attached. Comments ? Ok to commit ? Better ideas to disable hash support ?
No real better ideas, but yes please do commit.
Thanks ! Done in http://svn.boost.org/trac/boost/changeset/48254 Yours, Jürgen -- * Dipl.-Math. Jürgen Hunold ! Ingenieurgesellschaft für * voice: ++49 511 262926 57 ! Verkehrs- und Eisenbahnwesen mbH * fax : ++49 511 262926 99 ! Lister Straße 15 * juergen.hunold@ivembh.de ! www.ivembh.de * * Geschäftsführer: ! Sitz des Unternehmens: Hannover * Prof. Dr.-Ing. Thomas Siefer ! Amtsgericht Hannover, HRB 56965 * PD Dr.-Ing. Alfons Radtke !
participants (2)
-
John Maddock
-
Juergen Hunold