cplusplus.co.il

Archive for the ‘questions’ Category

Actual object memory layout can be a little tricky when inheritance and its virtual tables are involved. And it gets even trickier when pointer arithmetic is employed. Do you consider yourself a low-level expert?

Read the rest of this entry »

This question was written by a friend who luckily let me use it. It presents a very common pitfall of C++, regarding the syntax of decleration statements.

Read the rest of this entry »

When using placement new operator, destruction isn’t as transparent as usual..

Read the rest of this entry »

Virtual inheritance has quite a few common pitfalls, one of which is related to the construction of the virtual base.

Read the rest of this entry »

The given two statements actually translate to two very different declerations.

Read the rest of this entry »