about summary refs log tree commit diff
path: root/absl
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2018-10-18T17·35-0700
committerXiaoyi Zhang <zhangxy988@gmail.com>2018-10-18T20·51-0400
commit45221ccc4ed643e4209b0cc5798e97203f108fa8 (patch)
treebbf18f256eeeefee1b9ebf4057792f6a99c9a207 /absl
parent2019e17a520575ab365b2b5134d71068182c70b8 (diff)
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
Diffstat (limited to 'absl')
-rw-r--r--absl/base/casts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/base/casts.h b/absl/base/casts.h
index 20fd34da7010..1eef6a616d6b 100644
--- a/absl/base/casts.h
+++ b/absl/base/casts.h
@@ -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;
 }