Skip to content

Commit c0cf044

Browse files
authored
Merge pull request #4396 from roystgnr/ghosting_clone_required
GhostingFunctor clone() should be pure virtual
2 parents 10cfbdd + d1bf1fe commit c0cf044

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

include/ghosting/ghosting_functor.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,12 @@ class GhostingFunctor : public ReferenceCountedObject<GhostingFunctor>
213213
* different meshes. The operations in GhostingFunctor are mesh dependent.
214214
*/
215215
virtual std::unique_ptr<GhostingFunctor> clone () const
216-
// Let us return nullptr for backward compatibility.
217-
// We will come back to mark this function as pure virtual
218-
// once the API upgrade is done.
219-
{ return nullptr; }
216+
#ifndef LIBMESH_ENABLE_DEPRECATED
217+
= 0;
218+
#else
219+
// Return nullptr for backward compatibility.
220+
{ libmesh_deprecated(); return nullptr; }
221+
#endif
220222

221223
/**
222224
* It should be called after cloning a ghosting functor.

0 commit comments

Comments
 (0)