Moved Heap::the for safe compilation
This commit is contained in:
parent
501f319834
commit
7ea2e2733f
2 changed files with 13 additions and 14 deletions
|
|
@ -75,19 +75,7 @@ namespace GC
|
|||
* saved as the limit for scanning the stack in collect.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This implementation of the() guarantees laziness
|
||||
* on the instance and a correct destruction with
|
||||
* the destructor.
|
||||
*
|
||||
* @returns The singleton object.
|
||||
*/
|
||||
static Heap& the()
|
||||
{
|
||||
static Heap instance;
|
||||
return instance;
|
||||
}
|
||||
|
||||
static Heap &the();
|
||||
static void init();
|
||||
static void dispose();
|
||||
static void *alloc(size_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue