0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 13:18:58 +02:00

ircd:🆑 Assert cl::data object not included in parameter template.

This commit is contained in:
Jason Volk 2021-03-25 18:43:49 -07:00
parent d5f1a490db
commit 9e795acd72

View file

@ -273,7 +273,11 @@ inline void
ircd::cl::kern::arg(const int pos,
const T &val)
{
arg(pos, const_buffer(&val, 1));
static_assert(!std::is_same<T, cl::data>());
arg(pos, const_buffer
{
reinterpret_cast<const char *>(&val), sizeof(T)
});
}
inline