دنبال کننده ها

۱۳۹۶ بهمن ۱۱, چهارشنبه

c++ - Implicit conversion loses integer precision: 'boost::intmax_t' (aka 'long long') to 'const std::size_t' (aka 'const unsigned long')

[ad_1]



I am running this script which throws following error.




Implicit conversion loses integer precision: 'boost::intmax_t' (aka 'long long') to 'const std::size_t' (aka 'const unsigned long')




void load(T & t)
boost::intmax_t l;
load_impl(l, sizeof(T));
// use cast to avoid compile time warning
//t = static_cast< T >(l);
t = T(l);



How to resolve this?




[ad_2]

لینک منبع