Export of internal Abseil changes.
-- f6241e6923d4d1525d3ec54bc5b85178b18612e9 by Derek Mauro <dmauro@google.com>: Make implicit_cast constexpr. GitHub #191 PiperOrigin-RevId: 217726953 GitOrigin-RevId: f6241e6923d4d1525d3ec54bc5b85178b18612e9 Change-Id: I46e4d92cbd54a38bfe5faeb939cf19d871d8b697
This commit is contained in:
parent
2019e17a52
commit
45221ccc4e
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ struct is_bitcastable
|
||||||
//
|
//
|
||||||
// Such implicit cast chaining may be useful within template logic.
|
// Such implicit cast chaining may be useful within template logic.
|
||||||
template <typename To>
|
template <typename To>
|
||||||
inline To implicit_cast(typename absl::internal::identity_t<To> to) {
|
constexpr To implicit_cast(typename absl::internal::identity_t<To> to) {
|
||||||
return to;
|
return to;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue