Skip to content
Snippets Groups Projects
This project is mirrored from https://gitlab.cern.ch/gaudi/Gaudi.git. Pull mirroring updated .
  1. Dec 15, 2017
  2. Dec 08, 2017
  3. Dec 05, 2017
  4. Dec 04, 2017
  5. Dec 02, 2017
  6. Nov 29, 2017
  7. Nov 28, 2017
  8. Nov 27, 2017
  9. Nov 26, 2017
  10. Nov 24, 2017
    • Gerhard Raven's avatar
      replace FuncPtrCast with reinterpret_cast · 8831bcb4
      Gerhard Raven authored
      8831bcb4
    • Gerhard Raven's avatar
      More standard compliant type-punning · 04826c21
      Gerhard Raven authored
      Type punning was implemented using a `union`, which relies on
      writing to one member of the union, and then reading from another.
      Strictly speaking this is 'undefined behaviour' in C++, as only
      the 'active' member of a union should be used. However, this
      works as a gcc extension, as it is valid C11 (note: no ++!).
      This patch changes this to use `std::memcpy`, which casts (implicitly)
      to `unsigned char*`, and casting any pointer to/from `unsigned char*`
      is well-defined in C++.
      
      Note that in practice, gcc and clang generate _identical_ code -
      see eg. https://godbolt.org/g/3kwRbo - so from that point
      of view this patch 'does nothing' but it is more standards compliant ;-)
      04826c21
  11. Nov 22, 2017
  12. Nov 21, 2017
  13. Nov 20, 2017
  14. Nov 19, 2017
  15. Nov 17, 2017
  16. Nov 16, 2017
Loading