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:
Abseil Team 2018-10-18 10:35:37 -07:00 committed by Xiaoyi Zhang
parent 2019e17a52
commit 45221ccc4e

View file

@ -105,7 +105,7 @@ struct is_bitcastable
//
// Such implicit cast chaining may be useful within template logic.
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;
}