styxx22
June 28th, 2009, 03:05 PM
I've been having some troubles figuring out why this error is occuring deep within the bowls of other code.
This occurs when I include thread & mutex header files from boost libraries for a class that has a single thread implemented.
Visual Studio 2008 level 4
c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data c:\boost\include\boost-1_39\boost\thread\thread_time.hpp(20) : see reference to class template instantiation 'boost::date_time::microsec_clock<time_type>' being compiled1>c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data
1>c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data
1>c:\boost\include\boost-1_39\boost\utility\addressof.hpp(30) : warning C4512: 'boost::detail::addr_impl_ref<T>' : assignment operator could not be generated
... and a few other errors.
There is absalutely no implicit coversions within the code I have written.
I simply create a single thread within the entire program.
If anyone knows or could point me in the right direction would be great!
Thanks
This occurs when I include thread & mutex header files from boost libraries for a class that has a single thread implemented.
Visual Studio 2008 level 4
c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data c:\boost\include\boost-1_39\boost\thread\thread_time.hpp(20) : see reference to class template instantiation 'boost::date_time::microsec_clock<time_type>' being compiled1>c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data
1>c:\boost\include\boost-1_39\boost\date_time\microsec_time_clock.hpp(103) : warning C4244: 'argument' : conversion from 'int' to 'unsigned short', possible loss of data
1>c:\boost\include\boost-1_39\boost\utility\addressof.hpp(30) : warning C4512: 'boost::detail::addr_impl_ref<T>' : assignment operator could not be generated
... and a few other errors.
There is absalutely no implicit coversions within the code I have written.
I simply create a single thread within the entire program.
If anyone knows or could point me in the right direction would be great!
Thanks