# HG changeset patch # User deba # Date 1139304047 0 # Node ID 71b3bc042c470f5d9ff894df6c8225b4d5a54e96 # Parent df0b0745708370e2e04531c3ed6582dab9bc3d0c Compilation with G++ -ansi diff -r df0b07457083 -r 71b3bc042c47 lemon/bits/default_map.h --- a/lemon/bits/default_map.h Mon Feb 06 20:32:29 2006 +0000 +++ b/lemon/bits/default_map.h Tue Feb 07 09:20:47 2006 +0000 @@ -33,7 +33,7 @@ template struct DefaultMapSelector { - typedef ArrayMap<_Graph, _Item, _Value> Map; + typedef VectorMap<_Graph, _Item, _Value> Map; }; // bool @@ -94,7 +94,21 @@ typedef VectorMap<_Graph, _Item, unsigned long> Map; }; - // \todo handling long long type + +#ifndef __STRICT_ANSI__ + + // long long + template + struct DefaultMapSelector<_Graph, _Item, signed long long> { + typedef VectorMap<_Graph, _Item, signed long long> Map; + }; + + template + struct DefaultMapSelector<_Graph, _Item, unsigned long long> { + typedef VectorMap<_Graph, _Item, unsigned long long> Map; + }; + +#endif // float diff -r df0b07457083 -r 71b3bc042c47 lemon/tolerance.h --- a/lemon/tolerance.h Mon Feb 06 20:32:29 2006 +0000 +++ b/lemon/tolerance.h Tue Feb 07 09:20:47 2006 +0000 @@ -271,9 +271,12 @@ static Value zero() {return 0;} }; +#ifndef __STRICT_ANSI__ + ///Long long integer specialization of \ref Tolerance. ///Long long integer specialization of \ref Tolerance. + ///\warning This class is not ansi compatible. ///\sa Tolerance template<> class Tolerance @@ -304,6 +307,8 @@ static Value zero() {return 0;} }; +#endif + /// @} } //namespace lemon