Skip to content

Commit 1d00ba8

Browse files
[arcane,materials] Ajoute pour le C++17 l'operateur '!=' pour 'ComponentItemInternalLocalId'.
Avec le C++20, cet opérateur est généré à partir de l'operateur '=='.
1 parent b988136 commit 1d00ba8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: arcane/src/arcane/core/materials/ComponentItemInternal.h

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ class ARCANE_CORE_EXPORT ComponentItemInternalLocalId
4343
{
4444
return a.m_id == b.m_id;
4545
}
46+
ARCCORE_HOST_DEVICE friend bool operator!=(ComponentItemInternalLocalId a,
47+
ComponentItemInternalLocalId b)
48+
{
49+
return a.m_id != b.m_id;
50+
}
4651
ARCANE_CORE_EXPORT friend std::ostream&
4752
operator<<(std::ostream& o,const ComponentItemInternalLocalId& id);
4853

0 commit comments

Comments
 (0)