src/bloom.cpp:63:32: error: member function 'begin' not viable: 'this' argument has type 'const uint256',
but function is not marked const
vector data(hash.begin(), hash.end());
^~~~
src/uint256.h:344:20: note: 'begin' declared here
unsigned char* begin()
^
src/bloom.cpp:93:32: error: member function 'begin' not viable: 'this' argument has type 'const uint256',
but function is not marked const
vector data(hash.begin(), hash.end());
^~~~
src/uint256.h:344:20: note: 'begin' declared here
unsigned char* begin()
^
2 errors generated.
make: *** [build/bloom.o] Error 1
Have a tip?
Modify src/uint256.h
Line: 344:
unsigned char* begin()
{
return (unsigned char*)&pn[0];
}
to
unsigned char* begin()
const {
return (unsigned char*)&pn[0];
}
&
Line: 349:
unsigned char* end()
{
return (unsigned char*)&pn[WIDTH];
}
to
unsigned char* end()
const {
return (unsigned char*)&pn[WIDTH];
}
This Should Resolve your problem.