D
danny van elsen
hello all,
I have recently changed from gcc 3.3.1 to version 3.4.3.
In the following code
class MyClass
{
...
private:
void * current;
}
void *
MyClass::Use_Pool(long size)
{
void * temp;
////////////////////////////////////////////////////////////////////////////
temp = current;
(char*) current += size;
}
I now have the following error:
memory_pool.cc:69: error: ISO C++ forbids cast to non-reference type used as lvalue
what would be the best way to solve this?
thanks, D.
I have recently changed from gcc 3.3.1 to version 3.4.3.
In the following code
class MyClass
{
...
private:
void * current;
}
void *
MyClass::Use_Pool(long size)
{
void * temp;
////////////////////////////////////////////////////////////////////////////
temp = current;
(char*) current += size;
}
I now have the following error:
memory_pool.cc:69: error: ISO C++ forbids cast to non-reference type used as lvalue
what would be the best way to solve this?
thanks, D.