mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
Qualify cast_op_type
to help ICC
This commit is contained in:
parent
835fa9bcc6
commit
32ef69acde
@ -835,7 +835,7 @@ public:
|
|||||||
nullptr, nullptr, holder);
|
nullptr, nullptr, holder);
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T> using cast_op_type = cast_op_type<T>;
|
template <typename T> using cast_op_type = detail::cast_op_type<T>;
|
||||||
|
|
||||||
operator itype*() { return (type *) value; }
|
operator itype*() { return (type *) value; }
|
||||||
operator itype&() { if (!value) throw reference_cast_error(); return *((itype *) value); }
|
operator itype&() { if (!value) throw reference_cast_error(); return *((itype *) value); }
|
||||||
|
Loading…
Reference in New Issue
Block a user