Skip to main content

All Questions

Tagged with
3 votes
3 answers
1k views

Possible alternatives to copy constructors

In my C++ project I am relying on some libraries that do memory management for me. I make wrapper classes, for ease of use and memory safety, for example the class below. Note that this is a much ...
Oebele's user avatar
  • 215
33 votes
5 answers
11k views

Why can't Java/C# implement RAII?

Question: Why can't Java/C# implement RAII? Clarification: I am aware the garbage collector is not deterministic. So with the current language features it is not possible for an object's Dispose() ...
mike30's user avatar
  • 2,818