r/cpp • • Sep 17 '22

Cppfront: Herb Sutter's personal experimental C++ Syntax 2 -> Syntax 1 compiler

https://github.com/hsutter/cppfront
335 Upvotes

360 comments sorted by

View all comments

Show parent comments

1

u/pjmlp Sep 27 '22

Just like RAII types as members only work as value types or explicitly placed into a smart pointer.

1

u/christian_regin Sep 28 '22

Yes of course. Value types are by far the norm and raw pointer should basically never be used.

1

u/pjmlp Sep 28 '22

That is what one should aim for, then there is what most people actually write.