UCL / UCL/STIR

boost _1 placeholder usage deprecated

Open
#790 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.