Skip to content

Warnings with Visual Studio c++ (VS2015 Update 3) #453

Closed
@tksatware

Description

When using the library with uint64_t values, some specialisations throw al lot of warnings (4267 and 4293).
The resulting code works fine, but I like a clean build log :)

So I propose to add the following lines before the first namespace Definition (line 103):

#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable: 4267 4293)
#endif

and this at the end before the last #endif:

#if defined(_MSC_VER)
#pragma warning(pop)
#endif

This also could be solved with type casts, but I think they would make the code less readable.

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions