diff -r a323456bf7c8 -r f531c16dd923 lemon/floyd_warshall.h --- a/lemon/floyd_warshall.h Wed Oct 05 16:45:37 2005 +0000 +++ b/lemon/floyd_warshall.h Thu Oct 06 09:37:53 2005 +0000 @@ -170,10 +170,13 @@ /// /// \author Balazs Dezso - +#ifdef DOXYGEN + template +#else template , typename _Traits=FloydWarshallDefaultTraits<_Graph,_LengthMap> > +#endif class FloydWarshall { public: @@ -256,8 +259,10 @@ /// \ref named-templ-param "Named parameter" for setting PredMap type /// template - class DefPredMap - : public FloydWarshall< Graph, LengthMap, DefPredMapTraits > {}; + struct DefPredMap + : public FloydWarshall< Graph, LengthMap, DefPredMapTraits > { + typedef FloydWarshall< Graph, LengthMap, DefPredMapTraits > Create; + }; template struct DefDistMapTraits : public Traits { @@ -272,8 +277,10 @@ /// \ref named-templ-param "Named parameter" for setting DistMap type /// template - class DefDistMap - : public FloydWarshall< Graph, LengthMap, DefDistMapTraits > {}; + struct DefDistMap + : public FloydWarshall< Graph, LengthMap, DefDistMapTraits > { + typedef FloydWarshall< Graph, LengthMap, DefDistMapTraits > Create; + }; template struct DefOperationTraitsTraits : public Traits { @@ -285,13 +292,21 @@ /// /// \ref named-templ-param "Named parameter" for setting PredMap type template - class DefOperationTraits + struct DefOperationTraits : public FloydWarshall< Graph, LengthMap, DefOperationTraitsTraits > { + typedef FloydWarshall< Graph, LengthMap, DefOperationTraitsTraits > + Create; }; ///@} + protected: + + FloydWarshall() {} + public: + + typedef FloydWarshall Create; /// \brief Constructor. ///