← Back to team overview

kicad-developers team mailing list archive

Coding style question

 

Hi Fellow Devs,

I'm fixing some memory management issues in the P&S by introducing smart
pointers here and there. Do we have any coding policy on typedefing
shared_ptrs/unique_ptrs?

Should I:
- always use std::shared_ptr<TYPE> explicitly?
- or am I allowed to typedef std::shared_ptr<TYPE> TYPE_SP (or something
alike)?

Cheers,
Tom



Follow ups