pybind11/include/pybind11
Changming Sun 210c8c218f
fix: a warning found by static code analyzer (#2783)
* Update attr.h: fix a warning found by static code analyzer

Update attr.h: fix a warning found by Visual Studio static code analyzer

Severity:Warning
Code:C6323
Description: Use of arithmetic operator on Boolean type(s).
Location:	C:\src\onnxruntime\debug\pybind11\src\pybind11\include\pybind11\attr.h:547

* Update include/pybind11/attr.h

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>

* Update attr.h

Co-authored-by: Henry Schreiner <HenrySchreinerIII@gmail.com>
2021-01-13 23:14:06 -05:00
..
detail Fix various minor memory leaks in the tests (found by Valgrind in #2746) (#2758) 2021-01-01 17:05:22 +01:00
attr.h fix: a warning found by static code analyzer (#2783) 2021-01-13 23:14:06 -05:00
buffer_info.h Fix buffer_info for ctypes buffers (pybind#2502) (#2503) 2020-10-03 23:09:14 +02:00
cast.h Adjusting type_caster<std::reference_wrapper<T>> to support const/non-const propagation in cast_op. (#2705) 2020-12-15 16:53:55 -08:00
chrono.h style: clang-tidy: modernize-use-using (#2645) 2020-11-09 10:10:19 -08:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
eigen.h style: clang-tidy: modernize-use-using (#2645) 2020-11-09 10:10:19 -08:00
embed.h Shorten PYBIND11_EMBEDDED_MODULE macro implementation by using PYBIND11_CATCH_INIT_EXCEPTIONS (#2579) 2020-10-12 23:10:18 +02:00
eval.h Add __builtins__ to globals argument of py::exec and py::eval if not present (#2616) 2020-10-27 19:58:27 +01:00
functional.h fix: ensure the GIL is held when copying a function. (#2545) 2020-10-02 17:00:45 -04:00
iostream.h pythonbuf fix (#2675) 2020-11-19 12:09:33 +01:00
numpy.h style: clang-tidy: modernize-use-using (#2645) 2020-11-09 10:10:19 -08:00
operators.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
options.h Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283) 2020-07-08 18:14:41 -04:00
pybind11.h Fix invalid access when reinterpret_casting a non-pybind11 PyObject* to instance* (found by Valgrind in #2746) (#2755) 2020-12-31 17:10:11 +01:00
pytypes.h fix: also throw in the move-constructor added by the PYBIND11_OBJECT macro, after the argument has been moved-out (if necessary) (#2701) 2020-12-15 23:22:53 -05:00
stl_bind.h style: clang-tidy: modernize-use-auto 2020-09-15 09:56:59 -04:00
stl.h Use defined for some preprocessor variables that might be undefined (#2476) 2020-09-10 13:58:26 -04:00