Notice

The forum is in read only mode.

  • Page:
  • 1

TOPIC: W8084 Suggest parentheses to clarify precedence

W8084 Suggest parentheses to clarify precedence 7 years 1 month ago #1284

I am using C++B XE4 VCL 32bit platform with Windows 7.

The assignment to the TAnchors() seen below is generating the warning: W8084 Suggest parentheses to clarify precedence. Can you show how to adjust this assignment so no warning is generated. Thanks.


Edit7->Anchors = TAnchors() << akLeft >> akTop >> akRight >> akBottom;

W8084 Suggest parentheses to clarify precedence 7 years 1 month ago #1293

Edit7->Anchors = (TAnchors() << akLeft) >> akTop >> akRight >> akBottom;
  • Page:
  • 1
Moderators: April Anne