I need to release a cl::Buffer object and reallocate with different size during program execution. I have to declare it global to be available in other files and functions. Since cl::Buffer has not any direct desstructor, is it safe to use its parent (Wrapper) destructor? In other words: mycl_Buf.~Wrapper();
If no, what is the safe method?
Thanks in Advance