Skip to content
Snippets Groups Projects
Commit e3557741 authored by Christian Engwer's avatar Christian Engwer
Browse files

[debugallocator]

fix global extern variable
parent f7460248
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ namespace Dune
namespace DebugMemory
{
// system constant for page size
const AllocationManager::difference_type AllocationManager::page_size = getpagesize();
const std::ptrdiff_t page_size = getpagesize();
// implement member functions
void AllocationManager::allocation_error(const char* msg)
......
......@@ -25,6 +25,8 @@ namespace Dune
namespace DebugMemory
{
extern const std::ptrdiff_t page_size;
struct AllocationManager
{
typedef std::size_t size_type;
......@@ -32,7 +34,6 @@ namespace Dune
typedef void* pointer;
protected:
static const difference_type page_size;
static void allocation_error(const char* msg);
struct AllocationInfo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment