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

Schulz, Roland roland.schulz at intel.com
Wed Jul 5 02:15:56 CEST 2017

You could define a user defined literal _r for real. I think this would be anyhow useful to have.

-----Original Message-----
From: gromacs.org_gmx-developers-bounces at maillist.sys.kth.se [mailto:gromacs.org_gmx-developers-bounces at maillist.sys.kth.se] On Behalf Of Vedran Miletic
Sent: Monday, July 3, 2017 6:58 AM
To: GROMACS developers <gmx-developers at gromacs.org>
Subject: [gmx-developers] MSVC conversion from 'double' to 'real' requires a narrowing conversion


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


Vedran Miletić
Gromacs Developers mailing list

* Please search the archive at http://www.gromacs.org/Support/Mailing_Lists/GMX-developers_List before posting!

* Can't post? Read http://www.gromacs.org/Support/Mailing_Lists

* For (un)subscribe requests visit
https://maillist.sys.kth.se/mailman/listinfo/gromacs.org_gmx-developers or send a mail to gmx-developers-request at gromacs.org.

More information about the gromacs.org_gmx-developers mailing list