Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pubby
· 2y ago · 0 comments
I mean it depends on the project and scope, but if you just write C-style code but use unique_ptr, vector, string, and <algorithm>, you're already at an advantage.
Comments
[–]
roeles
2y ago
I would recommend replacing macros with constexpr to allow type checking.
[–]
hnthrowaway0328
2y ago
Yeah and auto. Unique pointers really make one think about ownership.