← Back to team overview

dolfin team mailing list archive

Template help

 

I want to declare the following function:

  template<class S, class T>
  void apply_markers(S<T>& sub_domains, T sub_domain) const;

S is a template class (either MeshFunction or MeshMarkers) and T is a
primitive type.

The above declaration does not work. How should it be declared? I've
tried various other combinations without success.

--
Anders


Follow ups