Skip to content

error message when compiling with clang++ in C++11 mode #362

Merged
peterfpeterson merged 1 commit intonexusformat:masterfrom
quantumsteve:ErrorCompilingWithC++11
Sep 3, 2014
Merged

error message when compiling with clang++ in C++11 mode #362
peterfpeterson merged 1 commit intonexusformat:masterfrom
quantumsteve:ErrorCompilingWithC++11

Conversation

@quantumsteve
Copy link
Copy Markdown
Contributor

In C++11 mode, clang++ gives the following error at several lines in spec_retriever.cpp

error: non-constant-expression cannot be narrowed from type 'size_t' (aka 'unsigned long') to 'int' in initializer list [-Wc++11-narrowing]

We can override this message by inserting an explicit cast.

peterfpeterson added a commit that referenced this pull request Sep 3, 2014
error message when compiling with clang++ in C++11 mode
@peterfpeterson peterfpeterson merged commit 6843e2f into nexusformat:master Sep 3, 2014
@quantumsteve quantumsteve deleted the ErrorCompilingWithC++11 branch September 3, 2014 17:27
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