Fixed to compile on MSVC2013

This commit is contained in:
yvt 2014-01-01 02:52:49 +09:00
parent f98d0c9eb3
commit 768c9027a0
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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;