Changes in / [1125:1ad592289f93:1127:27d7d232fbcc] in lemon-main
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
CMakeLists.txt
r1119 r1123 151 151 ELSEIF(MSVC) 152 152 # This part is unnecessary 'casue the same is set by the lemon/core.h. 153 # Still keep it as an example. 154 SET(CXX_WARNING "/wd4250 /wd4355 /wd4503 /wd4800 /wd4996") 153 # Still kept as an example. 154 155 # SET(CXX_WARNING "/wd4250 /wd4267 /wd4355 /wd4503 /wd4800 /wd4996") 156 155 157 # Suppressed warnings: 156 158 # C4250: 'class1' : inherits 'class2::member' via dominance 159 # C4267: conversion from 'size_t' to 'type', possible loss of data 157 160 # C4355: 'this' : used in base member initializer list 158 161 # C4503: 'function' : decorated name length exceeded, name was truncated … … 169 172 170 173 IF(MSVC) 174 SET(CMAKE_CXX_FLAGS "/bigobj ${CMAKE_CXX_FLAGS}") 171 175 SET( CMAKE_CXX_FLAGS_MAINTAINER "/WX ${CMAKE_CXX_FLAGS_DEBUG}" CACHE STRING 172 176 "Flags used by the C++ compiler during maintainer builds." -
cmake/FindILOG.cmake
r1064 r1126 63 63 ${ILOG_CPLEX_ROOT_DIR}/lib/x86_debian4.0_4.1/static_pic 64 64 ${ILOG_CPLEX_ROOT_DIR}/lib/x86-64_debian4.0_4.1/static_pic 65 ${ILOG_CPLEX_ROOT_DIR}/lib/x86_linux/static_pic 66 ${ILOG_CPLEX_ROOT_DIR}/lib/x86-64_linux/static_pic 65 67 ${ILOG_CPLEX_ROOT_DIR}/lib/${ILOG_WIN_COMPILER}/stat_mda 66 68 NO_DEFAULT_PATH … … 73 75 ${ILOG_CONCERT_ROOT_DIR}/lib/x86_debian4.0_4.1/static_pic 74 76 ${ILOG_CONCERT_ROOT_DIR}/lib/x86-64_debian4.0_4.1/static_pic 77 ${ILOG_CONCERT_ROOT_DIR}/lib/x86_linux/static_pic 78 ${ILOG_CONCERT_ROOT_DIR}/lib/x86-64_linux/static_pic 75 79 ${ILOG_CONCERT_ROOT_DIR}/lib/${ILOG_WIN_COMPILER}/stat_mda 76 80 NO_DEFAULT_PATH -
lemon/arg_parser.h
r879 r1123 27 27 #include <sstream> 28 28 #include <algorithm> 29 #include <lemon/core.h> 29 30 #include <lemon/assert.h> 30 31 -
lemon/core.h
r1092 r1123 30 30 // Disable the following warnings when compiling with MSVC: 31 31 // C4250: 'class1' : inherits 'class2::member' via dominance 32 // C4267: conversion from 'size_t' to 'type', possible loss of data 32 33 // C4355: 'this' : used in base member initializer list 33 34 // C4503: 'function' : decorated name length exceeded, name was truncated … … 35 36 // C4996: 'function': was declared deprecated 36 37 #ifdef _MSC_VER 37 #pragma warning( disable : 4250 4 355 4503 4800 4996 )38 #pragma warning( disable : 4250 4267 4355 4503 4800 4996 ) 38 39 #endif 39 40 40 #ifdef __GNUC__ 41 #define GCC_VERSION (__GNUC__ * 10000 \ 42 + __GNUC_MINOR__ * 100 \ 43 + __GNUC_PATCHLEVEL__) 44 #endif 45 46 #if GCC_VERSION >= 40800 41 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) 47 42 // Needed by the [DI]GRAPH_TYPEDEFS marcos for gcc 4.8 48 43 #pragma GCC diagnostic ignored "-Wunused-local-typedefs" -
lemon/counter.h
r786 r1123 22 22 #include <string> 23 23 #include <iostream> 24 25 #include <lemon/core.h> 24 26 25 27 ///\ingroup timecount -
lemon/elevator.h
r581 r1124 168 168 int onLevel(int l) const 169 169 { 170 return _first[l+1]-_first[l];170 return static_cast<int>(_first[l+1]-_first[l]); 171 171 } 172 172 ///Return true if level \c l is empty. … … 178 178 int aboveLevel(int l) const 179 179 { 180 return _first[_max_level+1]-_first[l+1];180 return static_cast<int>(_first[_max_level+1]-_first[l+1]); 181 181 } 182 182 ///Return the number of active items on level \c l. 183 183 int activesOnLevel(int l) const 184 184 { 185 return _last_active[l]-_first[l]+1;185 return static_cast<int>(_last_active[l]-_first[l]+1); 186 186 } 187 187 ///Return true if there is no active item on level \c l. -
lemon/radix_sort.h
r1092 r1124 329 329 Allocator allocator; 330 330 331 int length = st d::distance(first, last);331 int length = static_cast<int>(std::distance(first, last)); 332 332 Key* buffer = allocator.allocate(2 * length); 333 333 try { -
lemon/random.h
r584 r1124 200 200 initState(init); 201 201 202 num = length > end - begin ? length : end - begin;202 num = static_cast<int>(length > end - begin ? length : end - begin); 203 203 while (num--) { 204 204 curr[0] = (curr[0] ^ ((curr[1] ^ (curr[1] >> (bits - 2))) * mul1)) … … 214 214 } 215 215 216 num = length - 1; cnt = length - (curr - state) - 1;216 num = length - 1; cnt = static_cast<int>(length - (curr - state) - 1); 217 217 while (num--) { 218 218 curr[0] = (curr[0] ^ ((curr[1] ^ (curr[1] >> (bits - 2))) * mul2)) -
lemon/static_graph.h
r877 r1124 204 204 205 205 node_num = n; 206 arc_num = st d::distance(first, last);206 arc_num = static_cast<int>(std::distance(first, last)); 207 207 208 208 node_first_out = new int[node_num + 1];
Note: See TracChangeset
for help on using the changeset viewer.