MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/1gbfgfw/why_safety_profiles_failed/ltrun6x/?context=3
r/cpp • u/steveklabnik1 • Oct 24 '24
347 comments sorted by
View all comments
Show parent comment
0
With safe-cpp, this is valid code. Because it uses the same aliasing model as rust (only one exclusive mutable borrow active at a time).
How is it safe when you have two mutable (C++) references where one can indirectly alias another?
Your example uses a different kind of reference. You're answering a different question.
View all comments
Show parent comment
0
u/kronicum Oct 26 '24
How is it safe when you have two mutable (C++) references where one can indirectly alias another?
Your example uses a different kind of reference. You're answering a different question.