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

clang-18 fails to compile dionysus: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'Index' (aka 'unsigned int') in initializer list #63

Closed
yurivict opened this issue Apr 12, 2024 · 1 comment

Comments

@yurivict
Copy link

yurivict commented Apr 12, 2024

/wrkdirs/usr/ports/math/py-dionysus/work/dionysus-2.0.10/bindings/python/boundary.cpp:71:75: error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'Index' (aka 'unsigned int') in initializer list [-Wc++11-narrowing-const-reference]
   71 |             m.column(n - 1 - x.index()).emplace_back(Entry { x.element(), n - 1 - i });
      |                                                                           ^~~~~~~~~
1 error generated.

log

Version: 2.0.10
FreeBSD 14.0

@mrzv mrzv closed this as completed in dd2ad59 Apr 14, 2024
@mrzv
Copy link
Owner

mrzv commented Apr 14, 2024

@yurivict Thanks. This should be fixed now.

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