Commit 519fc543 by Ken Oslund Committed by Copybara-Service

Internal change

PiperOrigin-RevId: 419719478
parent 28f46a10
......@@ -22,13 +22,6 @@ pybind_library(
],
)
pybind_library(
name = "absl_numpy_span_caster",
hdrs = ["absl_numpy_span_caster.h"],
deprecation = "Please use //pybind11_abseil:absl_casters.",
deps = [":absl_casters"],
)
cc_library(
name = "status_not_ok_exception",
hdrs = ["status_not_ok_exception.h"],
......
......@@ -322,7 +322,7 @@ struct type_caster<absl::Span<T>> {
// the elements do not require converting and pointers do not reference a
// temporary object owned by the element caster. Pointers to converted
// types are not allowed because they would result a dangling reference
// when the element caster is destroyed. TODO(b/169068487): improve this.
// when the element caster is destroyed.
if (convert && std::is_const<T>::value &&
(!std::is_pointer<T>::value ||
std::is_base_of<type_caster_generic, make_caster<T>>::value)) {
......
#ifndef PYBIND11_ABSEIL_ABSL_NUMPY_SPAN_CASTER_H_
#define PYBIND11_ABSEIL_ABSL_NUMPY_SPAN_CASTER_H_
#include "pybind11_abseil/absl_casters.h"
#endif // PYBIND11_ABSEIL_ABSL_NUMPY_SPAN_CASTER_H_
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment