HeavyIonAnalysis/AnalysisTree

Exception specification causes error during compilation

PeterParfenov opened this issue · 0 comments

Hi,

I've got some compilation errors when I try to install the new version of AnalysisTree (specifically, the core part). Tried with gcc ver. 4.8.5 and 7.5.0 - both produce the same error.

The error log:

AnalysisTree/core/BranchConfig.hpp:21:17: error: exception specification of explicitly defaulted move assignment operator does not match the calculated one
VectorConfig& operator=(VectorConfig&&) noexcept = default;
^
AnalysisTree/core/BranchConfig.hpp:51:29: note: in instantiation of template class 'AnalysisTree::VectorConfig' requested here
class BranchConfig : public VectorConfig, public VectorConfig, public VectorConfig {
^
AnalysisTree/core/BranchConfig.hpp:21:17: error: exception specification of explicitly defaulted move assignment operator does not match the calculated one
VectorConfig& operator=(VectorConfig&&) noexcept = default;
^
AnalysisTree/core/BranchConfig.hpp:51:55: note: in instantiation of template class 'AnalysisTree::VectorConfig' requested here
class BranchConfig : public VectorConfig, public VectorConfig, public VectorConfig {
^
AnalysisTree/core/BranchConfig.hpp:21:17: error: exception specification of explicitly defaulted move assignment operator does not match the calculated one
VectorConfig& operator=(VectorConfig&&) noexcept = default;
^
AnalysisTree/core/BranchConfig.hpp:51:83: note: in instantiation of template class 'AnalysisTree::VectorConfig' requested here
class BranchConfig : public VectorConfig, public VectorConfig, public VectorConfig {

If no exception specification is set (like it was in the previous commits: VectorConfig(VectorConfig &&) = default;), compilation is successful.