Fix FTBFS on Fedora 34 #14
Merged
MicheleC
merged 1 commits from ftbfs/fedora34
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'ftbfs/fedora34'
Deleting a branch is permanent. It CANNOT be undone. Continue?
/tmp/BUILD.fc34.x86_64/trinity-tdeedu-14.0.10/kiten/learn.cpp:804:16: required from here
/usr/include/c++/11/bits/stl_tree.h:770:15: error: static assertion failed: comparison object must be invocable as const
770 | is_invocable_v<const _Compare&, const _Key&, const _Key&>,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/11/bits/stl_tree.h:770:15: note: ‘std::is_invocable_v<const Learn::scoreCompare&, const TQListViewItem* const&, const TQListViewItem* const&>’ evaluates to false
Could you please adjust as commented? Other than that, the change looks good.
{
bool operator()(const TQListViewItem* v1, const TQListViewItem* v2)
{
const {
It looks good but I would move 'const' to the end of the previous line, it is much clearer that the 'operator()' is a const member.
97a8074efb
to0cb84fb903
3 years agoGreat, thanks!
0cb84fb903
into master 3 years agoReviewers
0cb84fb903
.