boostorg / boostorg/python

shared_ptr_from_python.hpp shadow storage compiler warning

未关闭
#396 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C++
星标
537
派生
223
平均合并
11 小时 22 分钟
30 天内合并 PR
2

描述

Please check change to shared_ptr_from_python.hpp from https://github.com/boostorg/python/commit/aca3c80c4f80dd3d52219e1ee299e08bb980bcfd

https://github.com/boostorg/python/blob/47d5bc76f69e20625214381c930a2fad5765e2b3/include/boost/python/converter/shared_ptr_from_python.hpp#L44-L65

> C:\projects\pythonscript\packages\boost.1.80.0\lib\native\include\boost\python\converter\shared_ptr_from_python.hpp(52,1): warning C4456: declaration of 'storage' hides previous local declaration (compiling source file ..\src\NotepadPython.cpp) [C:\projects\pythonscript\PythonScript\project\PythonScript2010.vcxproj]
> C:\projects\pythonscript\packages\boost.1.80.0\lib\native\include\boost\python\converter\shared_ptr_from_python.hpp(46,17): message : see declaration of 'storage' (compiling source file ..\src\NotepadPython.cpp) [C:\projects\pythonscript\PythonScript\project\PythonScript2010.vcxproj]
> C:\projects\pythonscript\packages\boost.1.80.0\lib\native\include\boost\python\converter\shared_ptr_from_python.hpp(45): message : while compiling class template member function 'void boost::python::converter::shared_ptr_from_python::construct(PyObject *,boost::python::converter::rvalue_from_python_stage1_data *)' [C:\projects\pythonscript\PythonScript\project\PythonScript2010.vcxproj]
>

From https://ci.appveyor.com/project/bruderstein/pythonscript/builds/44940991/job/g43lxe0hqbj7lrhx build with MS VS2022.

Looks like a merge issue.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。