Skip to content

Commit d1bf1fe

Browse files
committed
GhostingFunctor clone is pure virtual
(at least in non-deprecated builds)
1 parent e2aad5e commit d1bf1fe

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)