diff --git a/include/Topology/generic/genericmap.h b/include/Topology/generic/genericmap.h index 4ff1e0efd7128a9a37328b3948fce004aca28c13..5f4a3ce4934dbeec4b9e68461e4138e6282d6e67 100644 --- a/include/Topology/generic/genericmap.h +++ b/include/Topology/generic/genericmap.h @@ -685,7 +685,7 @@ public: //! For an orbit of a given dimension, return the number of incident cells of an other given dimension /*! @param d a dart */ - template + template unsigned int degree(Dart d); protected: diff --git a/include/Topology/generic/genericmap.hpp b/include/Topology/generic/genericmap.hpp index 4291de71d5d96dbbac67b48e73444d2eddced3c3..23c2dad5ab2de3abc89e0586528c7b033c08c5fb 100644 --- a/include/Topology/generic/genericmap.hpp +++ b/include/Topology/generic/genericmap.hpp @@ -612,11 +612,11 @@ unsigned int GenericMap::getNbOrbits(const FunctorSelect& good) return fcount.getNb(); } -template +template unsigned int GenericMap::degree(Dart d) { assert(ORBIT != INCIDENT || !"degree does not manage adjacency counting"); - Traversor* t = TraversorFactory::createIncident(*this, d, dimension(), ORBIT, INCIDENT) ; + Traversor* t = TraversorFactory::createIncident(*this, d, dimension(), ORBIT, INCIDENT) ; FunctorCount fcount ; t->applyFunctor(fcount) ; return fcount.getNb() ;