diff --git a/typedefs.h b/typedefs.h index a3a6362fe..b4fac11e7 100644 --- a/typedefs.h +++ b/typedefs.h @@ -28,9 +28,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #ifndef TYPEDEFS_H_ #define TYPEDEFS_H_ -// To fix long and long long woes -#include -#include +#include // Necessary workaround for Windows as VS doesn't implement C99 #ifdef _MSC_VER @@ -46,9 +44,10 @@ digitT round(digitT x) { typedef unsigned int NodeID; typedef unsigned int EdgeID; -typedef unsigned int EdgeWeight; +typedef int EdgeWeight; -static const NodeID SPECIAL_NODEID = boost::integer_traits::const_max; -static const EdgeID SPECIAL_EDGEID = boost::integer_traits::const_max; +static const NodeID SPECIAL_NODEID = std::numeric_limits::max(); +static const EdgeID SPECIAL_EDGEID = std::numeric_limits::max(); +static const EdgeWeight INVALID_EDGE_WEIGHT = std::numeric_limits::max(); #endif /* TYPEDEFS_H_ */