dimanche 27 décembre 2015

Visual Studio 2015 - intentional constant overflow and warning C4307

I use code from http://ift.tt/1KMGIrb to calculate compile time murmur 2 hash. In VS 2015 it generates C4307 warnings. Is there some way to convince compiler that overflow is intentional?

I use it inside of macros, so #pragma push and #pragma pop are not an option. Also dropping all C4307 warnings is not a solution I am happy with.

Aucun commentaire:

Enregistrer un commentaire