Changes between Version 29 and Version 30 of Guidelines/MaintenanceGuidelines
- Timestamp:
- Nov 18, 2009, 10:44:32 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Guidelines/MaintenanceGuidelines
v29 v30 750 750 ||C4710||'function' : function not inlined||If variable is volatile, suppress.||#pragma warning(disable: 4510) // function not inlined.|| 751 751 752 ||C4800|| int' : forcing value to bool 'true' or 'false'||Use a bool valued expression. Write out expressions, for example: "value >= 0" or "ptr != 0" (Boost prefers clarity to curtness). Take care if using templates that constants are of the right type, for example you may need " static_cast<T>(1)". Or use static_cast<bool>(expression). Or suppress.||# pragma warning(disable: 4800) // int' : forcing value to bool 'true' or 'false'752 ||C4800|| int' : forcing value to bool 'true' or 'false'||Use a bool valued expression. Write out expressions, for example: "value >= 0" or "ptr != 0" (Boost prefers clarity to curtness). Take care if using templates that constants are of the right type, for example you may need "value == static_cast<T>(1)". Or use static_cast<bool>(expression). Or suppress.||# pragma warning(disable: 4800) // int' : forcing value to bool 'true' or 'false' 753 753 754 754 ||C4996||'putenv': The POSIX name for this item is deprecated (but NOT by POSIX!).||Suppress.||# pragma warning(disable: 4996) // 'putenv' was declared deprecated.||