Hello!
Using numeric_cast I face a warning in MSVC 8.0 Express Edition
e:\libraries\boost\include\boost-1_35\boost\numeric\conversion\cast.hpp(41) : warning C4267:
'return' : conversion from 'size_t' to 'Uint32', possible loss of data
e:\projects\fundamental_type_factory.cpp(62) : see reference to function template
instantiation 'Target
boost::numeric_cast(Source)' being compiled
with
[
Target=Uint32,
T=Uint32,
Source=fundamental_type::numeric_result
]
e:\projects\fundamental_type_factory.cpp(61) : while compiling class template member
function 'fundamental_type &`anonymous-namespace'::fundamental_type_impl<T>::operator
=(const fundamental_type::numeric_result &)'
....
Trying to compile without warnings I am wondering about this warning, since I use the cast to
raise an exception at runtime if data are lost. Is it logical?
With Kind Regards,
Ovanes