CppCon 2019 has ended
Back To Schedule
Tuesday, September 17 • 14:00 - 15:00
Better Code with C++ Attributes

Log in to save this to your schedule, view media, leave feedback and see who's attending!

Modern C++ attributes such as [[noreturn]] and [[deprecated]] can be used to improve code quality and programmer productivity. They provide valuable information to the compiler, allowing it to generate more efficient code and provide more useful warning messages. C++20 is slated to include several new attributes, including [[no_unique_address]] and the design-by-contract attributes. They also let you use compiler extensions on specific toolchains without locking you into using only those toolchains.

This session explores several C++ attributes and provides examples of how to use each one to improve your programs. Although it focuses on the standard attributes, it also includes examples of non-standard attributes from specific toolchains.

avatar for Ben Saks

Ben Saks

Chief Engineer, Saks & Associates

Tuesday September 17, 2019 14:00 - 15:00 MDT
Summit 8/9
  • Design/Best Practices