I started off learning OpenCL using the normal C headers and now
switched over to C++.
When using C I had to release my cl_context by calling clReleaseContext(myContext),
but how would I do that using the C++ bindings?
Calling clReleaseContext with a cl::Context as parameter won't compile due to
a missing conversion from cl::Context to cl_context.
cl::Context.release() is protected so there is no chance to call it.
Is it actually necessary to manually release the cl::Context?
If yes: how?