Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

depixelization/source/utility/public/FileUtil.h:49:21: error: 'transform_reduce' is not a member of 'std' #25

Open
onefish51 opened this issue Jan 28, 2021 · 1 comment
Labels
build issue Issues related to the build system or compilation

Comments

@onefish51
Copy link

onefish51 commented Jan 28, 2021

I run the code on Ubuntu 18.04 , cmake version 3.18.2, boost 1.72.0, GCC 8.2.0.

when I run cmake --build .

Like the Title, it throw me a Error message:

depixelization/source/utility/public/FileUtil.h:49:21: error: 'transform_reduce' is not a member of 'std' return std::transform_reduce(std::cbegin(value), std::cend(value), std::string{}, std::plus<std::string>{},

and

depixelization/source/utility/public/FileUtil.h:59:25: error: no match for 'operator==' (operand types are 'const std::__cxx11::basic_string<char>' and 'void') return item == toLower(filePath.extension().string());
thank you very much!

@Hoshiningen
Copy link
Owner

Hello!

Apologies for such a late response here. It seems that GCC 8.2 doesn't support std::transform_reduce. The earliest version I could find, via godbolt.org, is GCC 9.3.

See: https://godbolt.org/z/8doxrfjor.

Thank you for bringing this to my attention!

@Hoshiningen Hoshiningen added the build issue Issues related to the build system or compilation label Jul 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue Issues related to the build system or compilation
Projects
None yet
Development

No branches or pull requests

2 participants