Category: C++
Anything related to the C++ programming language
C++ draft standard N4604
I just learned about the new C++ draft standard N4604. I read Section 16.8 “Predefined macro names” and created this little test program to assess the compilers available:
Read More → C++ draft standard N4604Programming — Principles and Practice Using C++, 2nd edition
I got my copy of “Programming — Principles and Practice Using C++”, second edition, today. My copy is of the third printing, dated June 2015, so it’s a pretty recent printing. I’m not teaching programming nor C++ at my school, although I used to. My job is simply to be the school’s system administrator, but […]
Read More → Programming — Principles and Practice Using C++, 2nd editionDetecting clang in C code
If you’re looking for a way to detect when your code is being compiled by clang, try the command clang -dM -E -x c /dev/null In the large list presented, you’ll find these macros the most interesting ones:
Read More → Detecting clang in C codeColourful and informative diagnostic by clang
clang is a breath of fresh air when it comes to deliver meaningful diagnostic of errors in program code. Not only is the diagnostic colourful on screen, clang also points out where in the source file changes ought to be made.
Read More → Colourful and informative diagnostic by clang