Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Some headers fail to compile independently #150
I think the previously-fixed Trac ticket #12228 has regressed.
The Boost Header Policy requires:
Yet, I'm seeing compile errors for quite a few of the headers under Clang and GCC. Eg for
I think there are problems compiling the following 20 headers:
Thanks for your continued work on this library.
I don't know of any way to get the compiler to check that each header it encounters compiles independently. However, I've sometimes scanned within a Boost repo to identify any such headers with a command like:
find ./include -iname '*.hpp' | sort | grep detail -vw | grep impl -v | xargs -I VAR clang++ -isystem include -isystem /opt/include -fsyntax-only -x c++ -o /tmp/a.o VAR
This is a good approach to manually trigger a search for any problems. But @dalg24's suggested approach of providing you with an automated way of detecting any future regressions.