Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 7.0.5 Example potential typo
#1
```c
constexpr int32_t fn( int32_t i )
{
  return i * i;
}

u8 + fn( 10 )   // Compliant by exception #1
```

Is u8 a typo? Reasonable one might be 'u32 + fn(10)'?

u8 << 2 is non-compliant, so should u8 + f(10), this should be a typo.
Reply


Messages In This Thread
Rule 7.0.5 Example potential typo - by danix800 - 21-03-2024, 01:57 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)