Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CalibCalorimetry/CaloTPG: definite static const float members #13044

Merged

Commits on Jan 24, 2016

  1. CalibCalorimetry/CaloTPG: definite static constexpr float members

    The patch resolves issue with Clang compiler.
    N3690 (should be C++11 standard) and latest draft N4567, 9.4.2/3
    
    ...
    The member shall still be defined in a namespace scope if it
    is odr-used (3.2) in the program and the namespace scope definition
    shall not contain an initializer.
    9.4.2/4 talks about how const static data members are being handled.
    
    Also standard says that no diagnostic is required by compiler.
    
        src/CalibCalorimetryCaloTPG/CaloTPGTranscoderULUT.o: In function aloTPGTranscoderULUT::setup(HcalLutMetadata const&, HcalTrigTowerGeometry const&)':
        src/CalibCalorimetry/CaloTPG/src/CaloTPGTranscoderULUT.cc:(.text+0x168b): undefined reference to aloTPGTranscoderULUT::LSB_HBHE'
        src/CalibCalorimetry/CaloTPG/src/CaloTPGTranscoderULUT.cc:(.text+0x16b6): undefined reference to aloTPGTranscoderULUT::LSB_HF'
    
    Before:
    
        $ nm -a ../lib/slc6_amd64_gcc493/libCalibCalorimetryCaloTPG.so | wc -l
        153
    
    After:
    
        $ nm -a ../lib/slc6_amd64_gcc493/libCalibCalorimetryCaloTPG.so | wc -l
        155
    
        $ nm -a ../lib/slc6_amd64_gcc493/libCalibCalorimetryCaloTPG.so | c++filt | grep -E '(LSB_HF|LSB_HBHE)'
        000000000000871c R CaloTPGTranscoderULUT::LSB_HF
        0000000000008718 R CaloTPGTranscoderULUT::LSB_HBHE
    
    Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
    David Abdurachmanov authored and David Abdurachmanov committed Jan 24, 2016
    Configuration menu
    Copy the full SHA
    b430d19 View commit details
    Browse the repository at this point in the history