|
|
|
|
|
by arka2147483647
499 days ago
|
|
Respectfully, the value of a c++ wrapper/implementation comes from the fact that it behaves like one would expect a C++ classes to behave. That is, RAII, and so on. If the underlying resource can not behave like a class, it would be better to expose a free function style api, eg: Handle h = ResourceGet();
ResourceDoSomething(h);
h.release();
|
|