Re: [Boost-Users] Re: error C2668: 'abs' : ambiguous call to overloade
In-Reply-To:
After I move the line 'using std namespace', the error still occurs. The error occurs in file date_time/time_duration.hpp, line 66. min_type minutes() const { return std::abs(((ticks() / (60*rep_type::res_adjust())) % 60)); }
For VC++ 7.1, we've enabled by default conformant overloads of abs that were previously disabled by default. As a result, you'll need to cast the result of your math to a specific type to ensure you get the abs you want. Martyn Lovell Software Architect Visual C++ Team - Libraries email: lnytram@tfosorcim.moc [Spam-avoidance: reverse each word in the email address before use] This posting is provided "AS IS" with no warranties, and confers no rights.
Thanks
--
/*******************/
×ÔÓÉ£šliberty£©ÎÞ·ÇŸÍÊÇÕâÑùÒ»ÖÖ³Ðŵ£ºÃ¿žöÈËœ«»áµÃµœÒ»ÖÖ±£ÕÏ£¬±£ÕÏÎÒÃÇ¿ÉÒÔÓë
ÈšÍþ¡¢¶àÊý¡¢Á÷Ë׌°ÓßÂÛµÄÓ°ÏìÏ࿹ºâ¡£
/*******************/
"Martyn Lovell"
In-Reply-To:
Black Ice, After I move the line 'using std namespace', the error still occurs. The error occurs in file date_time/time_duration.hpp, line 66. min_type minutes() const { return std::abs(((ticks() / (60*rep_type::res_adjust())) % 60)); }
For VC++ 7.1, we've enabled by default conformant overloads of abs that were previously disabled by default. As a result, you'll need to cast the result of your math to a specific type to ensure you get the abs you want.
Martyn Lovell Software Architect Visual C++ Team - Libraries email: lnytram@tfosorcim.moc [Spam-avoidance: reverse each word in the email address before use] This posting is provided "AS IS" with no warranties, and confers no rights.
participants (2)
-
Black Ice
-
martynl@cix.compulink.co.uk