From Jason Turner
Watch on YouTube

Summary

In this episode, Jason explains why using double underscores or leading underscores in C++ identifiers invokes undefined behavior. The C++ standard explicitly reserves identifiers containing double underscores, identifiers starting with an underscore followed by a capital letter, and identifiers beginning with an underscore in the global namespace for the implementation. Using such identifiers risks conflicts with compiler-generated code and standard library implementations.

Resources

Tags