mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-29 16:37:13 +00:00
Fix compiler error with MSVC 17 and CUDA 10.2
This commit is contained in:
parent
eeb1044818
commit
c776e9ef93
@ -1498,7 +1498,9 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
explicit operator type*() { return this->value; }
|
explicit operator type*() { return this->value; }
|
||||||
explicit operator type&() { return *(this->value); }
|
// static_cast works around compiler error with MSVC 17 and CUDA 10.2
|
||||||
|
// see issue #2180
|
||||||
|
explicit operator type&() { return *(static_cast<type *>(this->value)); }
|
||||||
explicit operator holder_type*() { return std::addressof(holder); }
|
explicit operator holder_type*() { return std::addressof(holder); }
|
||||||
|
|
||||||
// Workaround for Intel compiler bug
|
// Workaround for Intel compiler bug
|
||||||
|
Loading…
Reference in New Issue
Block a user