It's not impossible, at least in C# I know you can mark objects that need to be RAII with some custom attribute and enforce correct usage patterns with a custom analyzer. You need to write it yourself but it's not impossible that way.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
replies: