mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 08:21:09 +01:00
ircd:🆑 Assert cl::data object not included in parameter template.
This commit is contained in:
parent
d5f1a490db
commit
9e795acd72
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue