Skip to content
Snippets Groups Projects
Commit 01c0507f authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Remove implicit conversion volatile for volatile += operators

parent 57499519
No related branches found
No related tags found
1 merge request!11Feature/mpi
......@@ -174,12 +174,11 @@ public:
}
PASTIS_INLINE
constexpr volatile TinyMatrix& operator+=(const volatile TinyMatrix& A) volatile
constexpr void operator+=(const volatile TinyMatrix& A) volatile
{
for (size_t i=0; i<N*N; ++i) {
m_values[i] += A.m_values[i];
}
return *this;
}
PASTIS_INLINE
......
......@@ -151,12 +151,11 @@ class TinyVector
}
PASTIS_INLINE
constexpr volatile TinyVector& operator+=(const volatile TinyVector& v) volatile
constexpr void operator+=(const volatile TinyVector& v) volatile
{
for (size_t i=0; i<N; ++i) {
m_values[i] += v.m_values[i];
}
return *this;
}
PASTIS_INLINE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment