teodron / IGTK

Interview-grade toolkit (IGTK)
1 stars 1 forks source link

Create a RAII mechanism for automatic resource disposal #2

Open teodron opened 6 years ago

teodron commented 6 years ago

Implement a using clause using macros, template wrappers and disposal policies for at least these types of resources:

  1. pointers (although we have modern smart pointers)
  2. files
  3. synchronization objects (locks, critical sections, etc.)
  4. network connections
  5. DB connections