soci icon indicating copy to clipboard operation
soci copied to clipboard

Clean up headers with include-what-you-use

Open mloskot opened this issue 12 years ago • 1 comments

There is lots of places where #include can be potentially replaced with forward declarations. For example, soci-mysql.h does not need #include <mysql.h>, neither soci-postgresql.h needs #include <libpq-fe.h>.

This could loose coupling, shorten compilation times, remove what's unused.

Here is fantastic tool that can do the job: http://code.google.com/p/include-what-you-use/

mloskot avatar Apr 24 '13 23:04 mloskot

+1, especially since soci-mysql uses #include <mysql.h> whereas some installations put the header into <mysql/mysql.h>

Gui13 avatar Jun 15 '15 12:06 Gui13