Skip to content

Commit 6e849f6

Browse files
committed
When deprecated code is not enabled, protect old_dof_object
1 parent 86456c8 commit 6e849f6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

include/base/dof_object.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@ class DofObject : public ReferenceCountedObject<DofObject>
7777
/**
7878
* This object on the last mesh. Useful for projecting
7979
* solutions from one mesh to another.
80+
*
81+
* Public access to old_dof_object is now officially deprecated and will
82+
* be removed in future libMesh versions. Use the \p get_old_dof_object()
83+
* accessor instead.
8084
*/
85+
#ifndef LIBMESH_ENABLE_DEPRECATED
8186
protected:
87+
#endif
8288
std::unique_ptr<DofObject> old_dof_object;
8389

8490
public:

0 commit comments

Comments
 (0)