Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit 60e757e

Browse files
committed
Do not use user-own assign operator
1 parent 0a95bab commit 60e757e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/khronos_ocl_clhpp/cl2.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1896,6 +1896,7 @@ struct ImageFormat : public cl_image_format
18961896
image_channel_data_type = type;
18971897
}
18981898

1899+
#if 0
18991900
//! \brief Assignment operator.
19001901
ImageFormat& operator = (const ImageFormat& rhs)
19011902
{
@@ -1905,6 +1906,7 @@ struct ImageFormat : public cl_image_format
19051906
}
19061907
return *this;
19071908
}
1909+
#endif
19081910
};
19091911

19101912
/*! \brief Class interface for cl_device_id.
@@ -2700,7 +2702,7 @@ class Context
27002702
error = platforms[i].getDevices(type, &devices);
27012703

27022704
#if defined(CL_HPP_ENABLE_EXCEPTIONS)
2703-
} catch (Error) {}
2705+
} catch (Error&) {}
27042706
// Catch if exceptions are enabled as we don't want to exit if first platform has no devices of type
27052707
// We do error checking next anyway, and can throw there if needed
27062708
#endif

0 commit comments

Comments
 (0)