Skip to content

Commit

Permalink
[arcane] Corrige erreur de compilation en C++20/Clang13/GCC11.
Browse files Browse the repository at this point in the history
  • Loading branch information
grospelliergilles committed Nov 16, 2021
1 parent 2cb1a46 commit 6d836b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arcane/src/arcane/impl/LoadBalanceMng.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ template <typename DataType> class ProxyItemVariable
: public IProxyItemVariable
{
public:
ProxyItemVariable<DataType>(IVariable* var, Integer pos=0)
ProxyItemVariable(IVariable* var, Integer pos=0)
: m_var(var), m_pos(pos){
}
~ProxyItemVariable<DataType>() {}
~ProxyItemVariable() {}

Real operator[](ItemEnumerator i) const {
return static_cast<Real>(m_var[i]);
Expand Down
5 changes: 3 additions & 2 deletions arcane/src/arcane/tests/ArrayUnitTest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -909,8 +909,9 @@ class MultiArray2UnitTest
SharedMultiArray2<DataType> cloned_array(array.clone());
_checkSame(array,cloned_array);
// Modifie le clone et vérifie que l'original n'a pas changé.
cloned_array[2][3] = 0;
_check(array[2][3]!=0,"Bad value (test clone)");
DataType zero{0};
cloned_array[2][3] = zero;
_check(array[2][3]!=zero,"Bad value (test clone)");
}
array = SharedMultiArray2<DataType>();
SharedMultiArray2<DataType> new_array;
Expand Down

0 comments on commit 6d836b1

Please sign in to comment.