pybind11/include/pybind11
Laramie Leavitt 088ad4f298
Cleanup cast_safe<void> specialization (#3861)
* Cleanup cast_safe<void> specialization

Replace explicit specialization of cast_safe<void> with SFINAE.
It's better for SFINAE cases to cover all type-sets rather than mixing SFINAE and explicit specialization.

Extracted from #3674

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update cast.h

Use detail::none_of<> as suggested

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update cast.h

Reorder:
If TEMP_REF
If VOID
if (!VOID && !TEMP_REF)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2022-04-11 11:57:05 -07:00
..
detail (perf): Add missing move in sp matrix caster and microopt char concats (#3823) 2022-03-24 12:57:37 -04:00
stl feature: support compilers that use std::experimental::filesystem (#3840) 2022-03-31 22:16:10 -07:00
attr.h Dropping MSVC 2015 (#3722) 2022-02-14 11:36:22 -08:00
buffer_info.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
cast.h Cleanup cast_safe<void> specialization (#3861) 2022-04-11 11:57:05 -07:00
chrono.h chore: drop Python 3.5 (#3719) 2022-02-11 19:06:16 -05:00
common.h Add a dummy common.h header with a deprecation warning 2017-09-06 15:22:26 +02:00
complex.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
eigen.h (perf): Add missing move in sp matrix caster and microopt char concats (#3823) 2022-03-24 12:57:37 -04:00
embed.h fix: clear local internals after finalizing interpreter #2101 (#3744) 2022-02-20 08:00:29 -08:00
eval.h fix: missing move in eval.h (#3775) 2022-03-02 15:25:43 -05:00
functional.h Dropping MSVC 2015 (#3722) 2022-02-14 11:36:22 -08:00
gil.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
iostream.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
numpy.h perf: Add more moves and optimize (#3845) 2022-04-05 14:36:39 -04:00
operators.h Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) 2022-02-10 18:28:08 -08:00
options.h Fully-automatic clang-format with include reordering (#3713) 2022-02-10 12:17:07 -08:00
pybind11.h Add perfect forwarding to make_iterator calls (#3860) 2022-04-11 14:03:43 -04:00
pytypes.h perf: Add more moves and optimize (#3845) 2022-04-05 14:36:39 -04:00
stl_bind.h chore: Make stl_bind take slice as const_ref (#3852) 2022-04-11 13:53:30 -04:00
stl.h perf: Add more moves and optimize (#3845) 2022-04-05 14:36:39 -04:00