MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/xgcbt9/cppfront_herb_sutters_personal_experimental_c/iq4fynq
r/cpp • u/mttd • Sep 17 '22
360 comments sorted by
View all comments
Show parent comments
1
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.
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.
That is what one should aim for, then there is what most people actually write.
1
u/pjmlp Sep 27 '22
Just like RAII types as members only work as value types or explicitly placed into a smart pointer.