Fixed to compile on MSVC2013
This commit is contained in:
parent
f98d0c9eb3
commit
768c9027a0
@ -23,7 +23,8 @@
|
||||
#include <vector>
|
||||
#include <math.h>
|
||||
#include <string>
|
||||
#include <stdint.h> //uint32_t --> msvc
|
||||
#include <stdint.h> // uint32_t --> msvc
|
||||
#include <algorithm> // std::max / std::min
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define isnan _isnan
|
||||
|
@ -25,7 +25,8 @@
|
||||
#include "Debug.h"
|
||||
|
||||
namespace spades {
|
||||
|
||||
// FIXME: namespace pollution...
|
||||
static const size_t NoFreeRegion = static_cast<size_t>(-1);
|
||||
class MiniHeap {
|
||||
public:
|
||||
typedef size_t Ref;
|
||||
@ -55,7 +56,6 @@ namespace spades {
|
||||
std::vector<char> buffer;
|
||||
std::vector<Ref> freeRegionPool;
|
||||
|
||||
static constexpr size_t NoFreeRegion = static_cast<size_t>(-1);
|
||||
Ref firstFreeRegion;
|
||||
Ref lastFreeRegion;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user