[Lemon-commits] [lemon_svn] deba: r2542 - in hugo/trunk/lemon: . bits
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:53:26 CET 2006
Author: deba
Date: Tue Feb 7 10:20:47 2006
New Revision: 2542
Modified:
hugo/trunk/lemon/bits/default_map.h
hugo/trunk/lemon/tolerance.h
Log:
Compilation with G++ -ansi
Modified: hugo/trunk/lemon/bits/default_map.h
==============================================================================
--- hugo/trunk/lemon/bits/default_map.h (original)
+++ hugo/trunk/lemon/bits/default_map.h Tue Feb 7 10:20:47 2006
@@ -33,7 +33,7 @@
template <typename _Graph, typename _Item, typename _Value>
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 <typename _Graph, typename _Item>
+ struct DefaultMapSelector<_Graph, _Item, signed long long> {
+ typedef VectorMap<_Graph, _Item, signed long long> Map;
+ };
+
+ template <typename _Graph, typename _Item>
+ struct DefaultMapSelector<_Graph, _Item, unsigned long long> {
+ typedef VectorMap<_Graph, _Item, unsigned long long> Map;
+ };
+
+#endif
// float
Modified: hugo/trunk/lemon/tolerance.h
==============================================================================
--- hugo/trunk/lemon/tolerance.h (original)
+++ hugo/trunk/lemon/tolerance.h Tue Feb 7 10:20:47 2006
@@ -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<long long int>
@@ -304,6 +307,8 @@
static Value zero() {return 0;}
};
+#endif
+
/// @}
} //namespace lemon
More information about the Lemon-commits
mailing list