mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
fix gcc build error
This commit is contained in:
parent
467d0e5663
commit
42faaacdb7
@ -163,7 +163,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// allocates size bytes of memory from local heap
|
/// allocates size bytes of memory from local heap
|
||||||
NETGEN_INLINE void * Alloc (size_t size) final // throw (LocalHeapOverflow)
|
void * Alloc (size_t size) final // throw (LocalHeapOverflow)
|
||||||
{
|
{
|
||||||
char * oldp = p;
|
char * oldp = p;
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ public:
|
|||||||
|
|
||||||
/// allocates size objects of type T on local heap
|
/// allocates size objects of type T on local heap
|
||||||
template <typename T>
|
template <typename T>
|
||||||
NETGEN_INLINE T * Alloc (size_t size) // throw (LocalHeapOverflow)
|
T * Alloc (size_t size) // throw (LocalHeapOverflow)
|
||||||
{
|
{
|
||||||
char * oldp = p;
|
char * oldp = p;
|
||||||
size *= sizeof (T);
|
size *= sizeof (T);
|
||||||
|
Loading…
Reference in New Issue
Block a user