diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index e509bba..d9dc181 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -356,7 +356,7 @@ private: template struct AssignBuffer { - void operator()(typename BufferT::type &p, World *w) + void operator()(const typename BufferT::type &p, World *w) { if (auto b = static_cast(p.get())) b->assignToRT(w); } @@ -365,7 +365,7 @@ private: template struct CleanUpBuffer { - void operator()(typename BufferT::type &p) + void operator()(const typename BufferT::type &p) { if (auto b = static_cast(p.get())) b->cleanUp(); }