Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why do Boost headers have a .hpp suffix rather than .h or none at all?

boost headers suffix
0
Posted

Why do Boost headers have a .hpp suffix rather than .h or none at all?

0

File extensions communicate the “type” of the file, both to humans and to computer programs. The ‘.h’ extension is used for C header files, and therefore communicates the wrong thing about C++ header files. Using no extension communicates nothing and forces inspection of file contents to determine type. Using ‘.hpp’ unambiguously identifies it as C++ header file, and works well in actual practice.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123