Message: unordered_map problem also with clang on an ubuntu. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None unordered_map problem also with clang on an ubuntu. 

Forum: Installation and Configuration
Re: Question Intel Compiler (2016.3.06), Linux, and Geant4.10.p01 (William Donahue)
Date: 05 Jul, 2017
From: Guy Barrand <Guy Barrand>

  Hi All

 I fall on a note on the web saying that for an unordered_map, in case the "hash key is not cached" (I am
 pretty sure that there is someone on this planet that knows what it means), the operator() must not be
 throwable. 

 And in :
        source/processes/hadronic/cross_sections/include/G4FastPathHadronicCrossSection.hh

if removing the throw() in :
               struct G4CrossSectionDataStore_Key_Hash {
                  std::hash<uint64_t> hash_uint64_t;
                  //inline size_t operator()(const G4CrossSectionDataStore_Key& x) const throw() {
                  inline size_t operator()(const G4CrossSectionDataStore_Key& x) const { //G.Barrand : no throw.

it passes for me with clang-3.9 (then on an ubuntu and a 10.03.p01). I am pretty sure it is going to pass too
 with intel/icc. If so, then we are going to have two compilers versus one (g++) against a throw() here. It will
 remain to know who is right here relative to the standard of "what is an unordered_map"... 

 Then passing the compilation of this file, the 10.03.p01 built fine and I have been able to run my sim with clang-3.9.

   Cheers. Guy

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Feedback: Re: unordered_map problem also with clang on an ubuntu.   (Gabriele Cosmo - 06 Jul, 2017)
(_ None: Re: unordered_map problem also with clang on an ubuntu.   (Guy Barrand - 06 Jul, 2017)
 Add Message Add Message
to: "unordered_map problem also with clang on an ubuntu."

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]