C
Chimanrao
hi,
This is what I am trying to do:
I am writing program for a OS called Symbian, which uses the gcc
compiler.
I have the following piece of code
class MyAllocator
{
};
class MyClass
{
public:
int i,j,k,l;
MyClass() {}
};
void * operator new [](size_t sz, MyAllocator *)
{
return malloc(sz);
}
int main(int argc, char *argv[])
{
MyAllocator *pAlloc = new MyAllocator;
MyClass *pClass = new(pAlloc) MyClass[3];
}
on Symbian the value for parameter sz is is 56 while on windows its
48, why is this?
I read that this has something to C++0x ABI, not sure what it means...
any explanations?
Regards
Chimanrao
This is what I am trying to do:
I am writing program for a OS called Symbian, which uses the gcc
compiler.
I have the following piece of code
class MyAllocator
{
};
class MyClass
{
public:
int i,j,k,l;
MyClass() {}
};
void * operator new [](size_t sz, MyAllocator *)
{
return malloc(sz);
}
int main(int argc, char *argv[])
{
MyAllocator *pAlloc = new MyAllocator;
MyClass *pClass = new(pAlloc) MyClass[3];
}
on Symbian the value for parameter sz is is 56 while on windows its
48, why is this?
I read that this has something to C++0x ABI, not sure what it means...
any explanations?
Regards
Chimanrao