[gmx-developers] MSVC conversion from 'double' to 'real' requires a narrowing conversion

Vedran Miletić vedran at miletic.net
Mon Jul 3 16:06:12 CEST 2017


Hi,

I'm hitting MSVC's conversion from 'double' to 'real' requires a
narrowing conversion error on Jenkins. Is there a workaround that still
allows using array initializers?

I checked Stack Overflow but neither of those solutions is particularly
nice:
*
https://stackoverflow.com/questions/42491243/conversion-from-double-to-int-requires-a-narrowing-conversion
*
https://stackoverflow.com/questions/33605632/error-83-error-c2398-conversion-from-double-to-float-requires-a-narrowing-c

Regards,
Vedran

-- 
Vedran Miletić
vedran.miletic.net


More information about the gromacs.org_gmx-developers mailing list