boost _1 placeholder usage deprecated
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 160
- Forks
- 113
- Avg merge
- 12d 15h
- Merged PRs (30d)
- 1
Description
https://travis-ci.org/github/UCL/STIR/jobs/753580561#L7347
In file included from /Users/travis/build/UCL/STIR/src/test/test_GeneralisedPoissonNoiseGenerator.cxx:30:
In file included from /Users/travis/build/UCL/STIR/src/include/stir/GeneralisedPoissonNoiseGenerator.h:30:
/usr/local/include/boost/bind.hpp:36:1: warning: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use <boost/bind/bind.hpp> + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior. [-W#pragma-messages]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with src/test/test_GeneralisedPoissonNoiseGenerator.cxx and src/include/stir/GeneralisedPoissonNoiseGenerator.h, then reproduce the warning from the linked Travis job. Trace the Boost Bind usage in these files and verify that the deprecated-placeholder warning no longer appears in the affected test build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100