Skip to content

Commit

Permalink
Merge pull request arcaneframework#1280 from arcaneframework/dev/gg-f…
Browse files Browse the repository at this point in the history
…ix-compilation-with-clang19-and-c++23

Fix compilation with Clang 19 and C++23
  • Loading branch information
grospelliergilles authored Mar 19, 2024
2 parents f269506 + 09faf5f commit b3760cf
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 22 deletions.
1 change: 1 addition & 0 deletions arcane/src/arcane/std/BasicGenericWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include "arcane/core/IApplication.h"
#include "arcane/core/ISerializedData.h"
#include "arcane/core/IRessourceMng.h"
#include "arcane/core/ItemGroup.h"

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/
Expand Down
47 changes: 28 additions & 19 deletions arcane/src/arcane/std/SodMeshGenerator.cc
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2023 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* SodMeshGenerator.cc (C) 2000-2023 */
/* SodMeshGenerator.cc (C) 2000-2024 */
/* */
/* Service de génération d'un maillage à-la 'sod'. */
/*---------------------------------------------------------------------------*/
Expand All @@ -18,23 +18,23 @@
#include "arcane/utils/Real3.h"
#include "arcane/utils/CheckedConvert.h"

#include "arcane/IMeshReader.h"
#include "arcane/ISubDomain.h"
#include "arcane/ICaseDocument.h"
#include "arcane/XmlNode.h"
#include "arcane/Service.h"
#include "arcane/IParallelMng.h"
#include "arcane/Item.h"
#include "arcane/ItemGroup.h"
#include "arcane/IPrimaryMesh.h"
#include "arcane/IItemFamily.h"
#include "arcane/MeshVariable.h"
#include "arcane/MeshUtils.h"
#include "arcane/ItemPrinter.h"
#include "arcane/FactoryService.h"
#include "arcane/AbstractService.h"
#include "arcane/Properties.h"
#include "arcane/IMeshBuilder.h"
#include "arcane/core/IMeshReader.h"
#include "arcane/core/ISubDomain.h"
#include "arcane/core/ICaseDocument.h"
#include "arcane/core/XmlNode.h"
#include "arcane/core/Service.h"
#include "arcane/core/IParallelMng.h"
#include "arcane/core/Item.h"
#include "arcane/core/ItemGroup.h"
#include "arcane/core/IPrimaryMesh.h"
#include "arcane/core/IItemFamily.h"
#include "arcane/core/MeshVariable.h"
#include "arcane/core/MeshUtils.h"
#include "arcane/core/ItemPrinter.h"
#include "arcane/core/FactoryService.h"
#include "arcane/core/AbstractService.h"
#include "arcane/core/Properties.h"
#include "arcane/core/IMeshBuilder.h"

#include "arcane/std/IMeshGenerator.h"
#include "arcane/std/SodMeshGenerator.h"
Expand Down Expand Up @@ -104,6 +104,15 @@ SodMeshGenerator(IPrimaryMesh* mesh,bool zyx)
/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

SodMeshGenerator::
~SodMeshGenerator()
{
// Nécessaire pour std::unique_ptr.
}

/*---------------------------------------------------------------------------*/
/*---------------------------------------------------------------------------*/

IntegerConstArrayView SodMeshGenerator::
communicatingSubDomains() const
{
Expand Down
7 changes: 4 additions & 3 deletions arcane/src/arcane/std/SodMeshGenerator.h
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// Copyright 2000-2024 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2.0
//-----------------------------------------------------------------------------
/*---------------------------------------------------------------------------*/
/* SodMeshGenerator.h (C) 2000-2020 */
/* SodMeshGenerator.h (C) 2000-2024 */
/* */
/* Service de génération d'un maillage à-la 'sod'. */
/*---------------------------------------------------------------------------*/
Expand Down Expand Up @@ -52,7 +52,8 @@ class SodMeshGenerator

public:

SodMeshGenerator(IPrimaryMesh* tm, bool use_zxy=false);
SodMeshGenerator(IPrimaryMesh* tm, bool use_zxy = false);
~SodMeshGenerator();

public:

Expand Down

0 comments on commit b3760cf

Please sign in to comment.