Changes between Version 32 and Version 33 of Guidelines/MaintenanceGuidelines
- Timestamp:
- Nov 19, 2009, 4:28:25 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Guidelines/MaintenanceGuidelines
v32 v33 759 759 ||C4626||assignmentconstructor could not be generated because a base class copy constructor is inaccessible||Trying to derive from a non-copyable class? Bug?||Fix.|| 760 760 761 ||C4671||the copy constructor is inaccessible||Suppress?||#pragma warning(disable: 4671) // the copy constructor is inaccessible|| 762 763 ||C4673||A throw object cannot be handled in the catch block.||Fix ?||#pragma warning(disable: 4673) // Thrown object cannot be handled in catch block.|| 764 761 765 ||C4701||local variable may be used without having been initialized||Best is to recode to avoid the message, probably just initialising it. But if you are '''very''' sure the message is misleading, and cost of dummy initialisation too high, suppress.||# pragma warning(disable: 4701) // local variable may be used without having been initialized|| 762 766 … … 764 768 765 769 ||C4710||'function' : function not inlined||If variable is volatile, suppress.||#pragma warning(disable: 4510) // function not inlined.|| 770 771 ||C4725||inline assembly instruction that may not produce accurate results on some Pentium microprocessors.|| Now obselete. Suppress.||#pragma warning(disable: 4510) // inaccurate results on some Pentium microprocessors? || 766 772 767 773 ||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' … … 884 890 Information needed here. 885 891 886 887 888 892 '''Borland''' 893 894 895 Information needed here. 896 897 898 899