more comment clarifications

[SVN r18032]
This commit is contained in:
Dave Abrahams
2003-03-20 15:29:32 +00:00
parent cac5f11a3f
commit eb0676edac

View File

@ -46,16 +46,16 @@
// broken preprocessor in MWCW 8.3 and earlier. // broken preprocessor in MWCW 8.3 and earlier.
// //
// The basic mechanism works as follows: // The basic mechanism works as follows:
// (symbol test) + 1 => 2 if the test passes, 1 otherwise // (symbol test) + 1 => if (symbol test) then 2 else 1
// 1 % ((symbol test) + 1) => 1 if the test passes, 0 otherwise // 1 % ((symbol test) + 1) => if (symbol test) then 1 else 0
// //
// The complication with % is for cooperation with BOOST_TESTED_AT(). // The complication with % is for cooperation with BOOST_TESTED_AT().
// When "test" is BOOST_TESTED_AT(x) and // When "test" is BOOST_TESTED_AT(x) and
// BOOST_DETECT_OUTDATED_WORKAROUNDS is #defined, // BOOST_DETECT_OUTDATED_WORKAROUNDS is #defined,
// //
// symbol test => if symbol <= x then 1 else -1 // symbol test => if (symbol <= x) then 1 else -1
// (symbol test) + 1 => if symbol <= x then 2 else 0 // (symbol test) + 1 => if (symbol <= x) then 2 else 0
// 1 % ((symbol test) + 1) => if symbol <= x then 1 else divide-by-zero // 1 % ((symbol test) + 1) => if (symbol <= x) then 1 else divide-by-zero
// //
# ifdef BOOST_DETECT_OUTDATED_WORKAROUNDS # ifdef BOOST_DETECT_OUTDATED_WORKAROUNDS