Project

General

Profile

Feature #1178

Switch *.h header files to *.hpp

Added by Oliver Maurhart over 1 year ago.

Status:
Assigned
Priority:
Normal
Target version:
Start date:
13.02.2017
Due date:
% Done:

0%

Estimated time:

Description

As for instance http://stackoverflow.com/questions/152555/h-or-hpp-for-your-class-definitions#152671 we should switch to header files having the suffic *.hpp and not pure *.h.

As a rule:

  • C++ header files should have the extension *.hpp
  • C/C++ header files, i.e. files which might also be included in pure C, should have the extension *.h and include the proper
    #ifdef __cplusplus
    extern "C" {
    #endif
    
    ...
    
    #ifdef __cplusplus
    }
    #endif
    

The next release should include both, the old *.h aand *.hpp. The *.h version will include the *.hpp version but with a depreciation warning.
The release after the next will drop the *.h files.

Also available in: Atom PDF