Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

VS2017 warning STL4007 in boost/protect.hpp

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

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp
Domain
tooling

Research direction

Start with boost/protect.hpp and reproduce the reported Visual Studio 2017 C++17 warning involving boost::protect(std::bind()). Trace how result_type is used there and determine the intended behavior from the surrounding bind implementation. Done means the warning is addressed without regressing the reported protect usage.

Written by the indexing model from the issue text.

Description

boost::protect(std::bind()) warns about result_type which is deprecated since C++17:

2>.../boost/bind/protect.hpp(28): warning C4996: 'std::_Weak_result_type<std::_Is_memfunptr<void (__thiscall jetbrains::controller::pipe_client::* )(jetbrains::controller::pipe_client::client_context_ptr,uint32_t,jetbrains::controller::pipe_client::monitoring_context_ptr)>,void>::result_type': warning STL4007: Many result_type typedefs and all argument_type, first_argument_type, and second_argument_type typedefs are deprecated in C++17.
Dominant language
C++
Stars
29
Forks
50
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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/bind

All issues in boostorg/bind

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.