Skip to content

Commit

Permalink
fix mutliple def of connect_auto_update when including py_comp
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulSt committed Feb 25, 2022
1 parent 0de033c commit 5839a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comp/python_comp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ namespace ngcomp
return dynamic_pointer_cast<FESPACE>(fes);
};

void connect_auto_update(FESpace* fes) {
inline void connect_auto_update(FESpace* fes) {
if (fes->weak_from_this().expired())
throw Exception("Given pointer is not managed by a shared ptr.");
if (fes->DoesAutoUpdate())
Expand All @@ -64,7 +64,7 @@ namespace ngcomp
});
}

void connect_auto_update(GridFunction* gf) {
inline void connect_auto_update(GridFunction* gf) {
if (gf->weak_from_this().expired())
throw Exception("Given pointer is not managed by a shared ptr.");
if (gf->DoesAutoUpdate())
Expand Down

0 comments on commit 5839a09

Please # to comment.