-
Notifications
You must be signed in to change notification settings - Fork 203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphml: unnecessary dependency on graphviz (and thus Boost.Regex) #326
Comments
Sounds great! Can you make a pull request with your patch here? |
That Boost.Regex dependency has been a pain for a while, but I haven't had time to look into it. |
FYI, the direct dependency on |
Don't include graphviz.hpp from graphml.hpp (#326)
That PR was merged, so does that resolve this particular issue? |
Yes it does, thanks! |
Context/background
We have packaged Boost for build2 and are about to release changes that reduce the number of dependencies on Boost.Regex.
The way we have done this in our Boost.Graph package is to make the graphviz "submodule"---which is the only part that logically depends on Boost.Regex---optional and disabled by default. When it is disabled none of the graphviz-related headers are installed.
The problem
However,
graphml.hpp
includesgraphviz.hpp
, making it impossible to disable graphviz without also disabling graphml, and this for nothing but a few exception structs.Suggested solution
Our package's patch breaks this dependency by moving these exception structs to
exception.hpp
(which already contains exceptions that look similar/related to the ones in question) and includingexception.hpp
fromgraphml.hpp
andgraphviz.hpp
.The text was updated successfully, but these errors were encountered: