compute: compute/detail/sha1.hpp fails to compile with boost 1.86
When compiling files that include <boost/compute/detail/sha1.hpp>, I see the following error:
/home/bredelings/Work/installed-boost-1.86.0/include/boost/compute/detail/sha1.hpp: In member function ‘boost::compute::detail::sha1::operator std::string()’:
/home/bredelings/Work/installed-boost-1.86.0/include/boost/compute/detail/sha1.hpp:41:26: error: cannot convert ‘unsigned int [5]’ to ‘unsigned char (&)[20]’
41 | h.get_digest(digest);
| ^~~~~~
| |
| unsigned int [5]
In file included from /home/bredelings/Work/installed-boost-1.86.0/include/boost/compute/detail/sha1.hpp:18:
/home/bredelings/Work/installed-boost-1.86.0/include/boost/uuid/detail/sha1.hpp:179:43: note: initializing argument 1 of ‘void boost::uuids::detail::sha1::get_digest(unsigned char (&)[20])’
179 | inline void sha1::get_digest(digest_type& digest)
| ~~~~~~~~~~~~~^~~~~~
This is because boost::uuids::detail::sha1::digest_type has changed from typedef unsigned int(digest_type)[5]; to typedef unsigned char digest_type[ 20 ];.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Reactions: 2
- Comments: 24 (7 by maintainers)
1.87 has just been released.
The change in question still hasn’t been merged to master, so I have to assume the maintainer of Compute (@kylelutz) does not desire an official patch on the Boost website.
@glenfe A point release would be preferred over patch files.
In other words, patch discovery is terrible. One has to be “in the know” already. Release discovery is easy. One just has to visit https://boost.org.
Thanks for the report! https://github.com/boostorg/compute/pull/887 has been merged to
develop, and will make it into the next release.