Tuesday, October 10, 2017

C++17: [[fallthrough]] Attribute

C++17 added the [[fallthrough]] attribute to help protect against forgetting a break statement in a case statement. If a break is missing and the [[fallthrough]] attribute is not given then a warning may be given by the compiler.  MSVS 2017 does not handle this attribute.


No comments:

Post a Comment