C++: Difference between revisions

Line 191: Line 191:
{
{
   // Moves ownership to temp
   // Moves ownership to temp
   cl::Buffer temp = my_buf;
   cl::Buffer temp(my_buf);
  // or cl::Buffer temp = my_buf;
}
}