All Questions
5
questions
1
vote
1
answer
359
views
C++ RAII helper classes for malloc arrays and files
I'm going to use these classes in a program I'm working on, so I want to see if they're correct or could be improved.
https://pastebin.com/qx7ccteT
...
0
votes
1
answer
554
views
Vector Implementation C++ using RAII
I have attempted to implement a similar version of the STL Vector; several functions are missing but I'd like a few words of advice on whether I am indeed on the right track or whether I should change ...
4
votes
1
answer
133
views
Unique and shared resource owner
I need a unique_ptr and shared_ptr like structure, but instead of pointers, I would like to store some kind of reference to a ...
3
votes
2
answers
635
views
Hello World using Python embedded in C++, with RAII library initialization
I have written a small Hello World application that uses Python's C-API. The C library requires some functions to be called for global library (de-)initialization and the objects created by the ...
4
votes
2
answers
119
views
MallocRaii implementation
I'm playing around with RAII a bit lately and I wan't to know if/how I can improve this (quite simple but very helpful) class.
A word to two decisions I've made and why:
No error handling in ...