You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
staticvoidwrite_int(uint64_t* word, uint64_t x, constuint8_t offset=0, constuint8_t len=64);
...
inlinevoidbits::write_int(uint64_t* word, uint64_t x, uint8_t offset, constuint8_t len)
{
...
}
Since offset is modified inside write_int, it cannot be const. This results the following error when compiling with nvcc(11.4)/gcc(10.5):
so-76943386.cpp(29): error: expression must be a modifiable lvalue
detected during instantiation of "void bits_impl<T>::write_int(uint64_t *, uint64_t, uint8_t, uint8_t) [with T=void]"
(63): here
1 error detected in the compilation of "so-76943386.cpp".
The text was updated successfully, but these errors were encountered:
The definition of
write_int
function differs from its declaration inbits
struct:Since
offset
is modified insidewrite_int
, it cannot beconst
. This results the following error when compiling with nvcc(11.4)/gcc(10.5):The text was updated successfully, but these errors were encountered: