From c7f76ab84b2a061f071aa2ddcf0e78fc2d95c040 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Mon, 23 Jun 2008 14:22:32 +0000 Subject: [PATCH] factorized, see vcg/container/derivation_chain.h --- vcg/simplex/faceplus/base.h | 52 +++---------------------------------- 1 file changed, 3 insertions(+), 49 deletions(-) diff --git a/vcg/simplex/faceplus/base.h b/vcg/simplex/faceplus/base.h index f90c1f30..71a78a15 100644 --- a/vcg/simplex/faceplus/base.h +++ b/vcg/simplex/faceplus/base.h @@ -78,6 +78,7 @@ First working version! #include #include #include +#include namespace vcg { @@ -133,53 +134,6 @@ class FaceBase: public face::EmptyVertexRef< }; - -// Metaprogramming Core - -template class A> - class FaceArity1: public A > {}; - -template class A, template class B> - class FaceArity2: public B > {}; - -template class A, template class B, - template class C > - class FaceArity3: public C > {}; - -template class A, template class B, - template class C, template class D> - class FaceArity4: public D > {}; - -template class A, template class B, - template class C, template class D, - template class E > - class FaceArity5: public E > {}; - -template class A, template class B, - template class C, template class D, - template class E, template class F > - class FaceArity6: public F > {}; - -template class A, template class B, - template class C, template class D, - template class E, template class F, - template class G > - class FaceArity7: public G > {}; - -template class A, template class B, - template class C, template class D, - template class E, template class F, - template class G, template class H > - class FaceArity8: public H > {}; - /* The Real Big Face class; The class __FaceArityMax__ is the one that is the Last to be derived, @@ -198,11 +152,11 @@ template class E, template class F, template class G, template class H, template class I > - class FaceArityMax: public I > { + class FaceArityMax: public I > { // ----- Flags stuff ----- public: - + inline int & UberFlags () { return this->Flags();