IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d02aefdb authored by Nikos Karastathis's avatar Nikos Karastathis :ocean: Committed by Maximilian Reininghaus
Browse files

fixed minus operator in QuantityVector.hpp and .inl

parent fd304b3d
No related branches found
No related tags found
1 merge request!331Resolve "Compiler error with QuantityVector"
......@@ -17,8 +17,8 @@
namespace corsika {
template <typename TDimension>
inline typename QuantityVector<TDimension>::quantity_type QuantityVector<TDimension>::
operator[](size_t const index) const {
inline typename QuantityVector<TDimension>::quantity_type
QuantityVector<TDimension>::operator[](size_t const index) const {
return quantity_type(phys::units::detail::magnitude_tag, eigenVector_[index]);
}
......@@ -128,7 +128,7 @@ namespace corsika {
}
template <typename TDimension>
inline auto& QuantityVector<TDimension>::operator-() const {
inline auto QuantityVector<TDimension>::operator-() const {
return QuantityVector<TDimension>(-eigenVector_);
}
......
......@@ -89,7 +89,7 @@ namespace corsika {
auto& operator-=(QuantityVector<TDimension> const& pQVec);
auto& operator-() const;
auto operator-() const;
auto normalized() const;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment