mkmkme / OpenGTA

OpenGTA: copy of http://ogta.fifengine.de/ (forked from madebr/OpenGTA)
http://ogta.fifengine.de
Other
1 stars 0 forks source link

Consider using precompiled headers #19

Closed mkmkme closed 1 year ago

mkmkme commented 1 year ago

C++ modules are not quite here yet. However, some features of C++20 already require to have header-only implementation like bitwise.hpp. Currently, bitwise.hpp is included in map.h which included in many source files. Hence, any change in map.h or bitwise.hpp causes recompilation of many source files, which is not great. Consider following:

mkmkme commented 1 year ago

it is totally valid

It is not. It still has to be in the file that is included.