Skip to content

FieldMapBrBz.cpp: clang is picky about default arguments on default constructor

Wouter Deconinck requested to merge fieldmap-default-argument into master
  >> 100    /home/wdconinc/.spack/stage/spack-stage-athena-eic-acadia-f3ywxcswfbmaesdwzjkj32de4ywfyoht/spack-src/src/FieldMapBrBz.cpp:38:47: error: addition of default argument on redeclaration makes this constructor a default construc
            tor
     101    FieldMapBrBz::FieldMapBrBz(const std::string &field_type = "magnetic")
     102                                                  ^            ~~~~~~~~~~
     103    /home/wdconinc/.spack/stage/spack-stage-athena-eic-acadia-f3ywxcswfbmaesdwzjkj32de4ywfyoht/spack-src/src/FieldMapBrBz.cpp:22:5: note: previous declaration is here
     104        FieldMapBrBz(const std::string &field_type);
     105        ^
     106    1 error generated.

Merge request reports

Loading