Skip to content

Use heap for dynamic memory allocation

Do not use variable length arrays which lives on stack. It may cause stack overflow.

Use smart pointers for dynamic memory allocations on heap.

Merge request reports