revising BGL code (isomorphism.hpp) that uses abort()

Open
#163 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp
Domain
data

Research direction

The target is include/boost/graph/isomorphism.hpp at line 321, where abort() is called. Review the surrounding isomorphism path and consider the proposed boost::throw_exception replacement in the context of R's static checker; done means the abort call no longer blocks interoperability while preserving the intended failure behavior.

Written by the indexing model from the issue text.

Description

beginner friendly priority: low warning

https://github.com/boostorg/graph/blob/887e63d34e977ae439e392282422d2b82791a730/include/boost/graph/isomorphism.hpp#L321 is an abort() call. This is a problem for interoperation with R as the static checker warns about such calls, and warnings preclude inclusion of packages in certain ecosystems.

There don't seem to be many instances of abort() in BGL code. Should it be replaced by a boost::throw_exception?

Dominant language
C++
Stars
402
Forks
251
Avg merge
1d 9h
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/graph

All issues in boostorg/graph

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.