Warning in type_traits


#1

I’ve been getting a warning from line 1468 in type_traits about a double to float conversion only in Windows. It’s been there for a while now and I’m wondering if I’m the only one getting that message and if so, why? I’m running VS 2015.


#2

Can you post the exact warning?


#3

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\type_traits(1468): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data (compiling source file ..\..\Source\PluginProcessor.cpp)


#4

If a template is involved than MSVC will let you know which template instantiation caused the error. Does MSVC show any line number in PluginProcessor.cpp?


#5

Thanks to your asking about PluginProcessor.cpp, I did some digging, looking around for double to float conversion issues and found a 0.0 that should have been 0.0f in a lambda function. That was it.

My apologies.