bkrueger / mocasinns

MOnte-CArlo-SImulations - Neat'N'Simple
Other
4 stars 1 forks source link

Adding/substracting... scalars to histograms does not work #34

Closed bkrueger closed 10 years ago

bkrueger commented 11 years ago

The work on the concept checking class for the histograms showed, that arithmetic operations with histograms and scalars do not work.

The arithmetic functions are defined as: template<class x_value_type, class y_value_type, class Derived> const Derived& operator+(const Derived& lhs, y_value_type rhs)

The compiler cannot determine the template parameter x_value_type. Having such a definition can also lead to problems, because it can overwrite simply every definition of an operator+.