Преглед изворни кода

AK: Fix description of DistinctNumeric around operator bool

Ben Wiederhake пре 5 година
родитељ
комит
a6314f2ce6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      AK/DistinctNumeric.h

+ 1 - 1
AK/DistinctNumeric.h

@@ -41,7 +41,7 @@ namespace AK {
  * - No matter the values of these, `DistinctNumeric` always implements `==` and `!=`.
  * - If `Incr` is true, then `++a`, `a++`, `--a`, and `a--` are implemented.
  * - If `Cmp` is true, then `a>b`, `a<b`, `a>=b`, and `a<=b` are implemented.
- * - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (through `operator bool()`.
+ * - If `Bool` is true, then `!a`, `a&&b`, and `a||b` are implemented (but not `operator bool()`, because of overzealous integer promotion rules).
  * - If `Flags` is true, then `~a`, `a&b`, `a|b`, `a^b`, `a&=b`, `a|=b`, and `a^=b` are implemented.
  * - If `Shift` is true, then `a<<b`, `a>>b`, `a<<=b`, `a>>=b` are implemented.
  * - If `Arith` is true, then `a+b`, `a-b`, `+a`, `-a`, `a*b`, `a/b`, `a%b`, and the respective `a_=b` versions are implemented.