'self' hides global declaration

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

Nobody has claimed this yet.

Assessment

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

Research direction

Start with boost/python/object_call.hpp and compare the reported declaration with boost/python/self.hpp. Reproduce the warning by building the source file or project under MSVC, then verify that the warning is no longer emitted without introducing new compiler warnings.

Written by the indexing model from the issue text.

Description

See https://ci.appveyor.com/project/bruderstein/pythonscript/builds/44940991/job/g43lxe0hqbj7lrhx

C:\projects\pythonscript\packages\boost.1.80.0\lib\native\include\boost\python\object_call.hpp(18,1): warning C4459: declaration of 'self' hides global declaration (compiling source file ..\src\ScintillaWrapper.cpp) [C:\projects\pythonscript\PythonScript\project\PythonScript2010.vcxproj]
C:\projects\pythonscript\packages\boost.1.80.0\lib\native\include\boost\python\self.hpp(24,35): message : see declaration of 'boost::python::self_ns::self' (compiling source file ..\src\ScintillaWrapper.cpp) [C:\projects\pythonscript\PythonScript\project\PythonScript2010.vcxproj]

MS VS2022 compiler warning.

Dominant language
C++
Stars
537
Forks
223
Avg merge
11h 22m
Merged PRs (30d)
2

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

All issues in boostorg/python

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.