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

Build fails: simple_read_write.cpp:56:53: error: no matching function for call to 'max' #596

Closed
yurivict opened this issue Jun 19, 2018 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Jun 19, 2018

The FreeBSD port build fails on i386 systems:

/wrkdirs/usr/ports/science/triqs/work/triqs-2.0/triqs/arrays/h5/simple_read_write.cpp:56:53: error: no matching function for call to 'max'
        for (int i : range(info.R)) chunk_dims[i] = std::max(info.lengths[i], 1ul);
                                                    ^~~~~~~~
/usr/include/c++/v1/algorithm:2611:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned int' vs. 'unsigned long')
max(const _Tp& __a, const _Tp& __b)
^
/usr/include/c++/v1/algorithm:2621:1: note: candidate template ignored: could not match 'initializer_list<type-parameter-0-0>' against 'unsigned int'
max(initializer_list<_Tp> __t, _Compare __comp)
^
/usr/include/c++/v1/algorithm:2603:1: note: candidate function template not viable: requires 3 arguments, but 2 were provided
max(const _Tp& __a, const _Tp& __b, _Compare __comp)
^
/usr/include/c++/v1/algorithm:2629:1: note: candidate function template not viable: requires single argument '__t', but 2 arguments were provided
max(initializer_list<_Tp> __t)
^

http://beefy10.nyi.freebsd.org/data/111i386-default/472730/logs/triqs-2.0.log

@Wentzell
Copy link
Member

This code was replaced in the current development branch.
Please open a new issue if you run into similar trouble with the latest development version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants