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

MSVC: fix C4576 error #2166

Merged
merged 1 commit into from
Jan 17, 2025
Merged

MSVC: fix C4576 error #2166

merged 1 commit into from
Jan 17, 2025

Conversation

tobiasdiez
Copy link
Contributor

Fixes a couple of C4576 errors similar to the following

nmod_vec.h(221): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax

by replacing the compound literal with a struct.

This error might have been caused for me by importing this header in a C++ file, not completely sure.

Fixes a couple of C4576 errors similar to the following
```
nmod_vec.h(221): error C4576: a parenthesized type followed by an initializer list is a non-standard explicit type conversion syntax
```
by replacing the compound literal with a struct.
@albinahlback
Copy link
Collaborator

Yeah, I believe only GCC-compatible compilers really support this. Good catch!

@albinahlback albinahlback merged commit 95493af into flintlib:main Jan 17, 2025
9 checks passed
@tobiasdiez tobiasdiez deleted the patch-1 branch January 17, 2025 16:32
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

Successfully merging this pull request may close these issues.

2 participants