summaryrefslogtreecommitdiffstats
path: root/runtime/base/casts.h
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2014-11-03 23:41:03 -0800
committerAndreas Gampe <agampe@google.com>2014-11-03 23:41:03 -0800
commit575e78c41ece0dec969d31f46be563d4eb7ae43b (patch)
tree16906df0ba0912a6cb01b3139ba7c60d5f9d09b7 /runtime/base/casts.h
parent2998e9cdc9f19c30c4944a4726ed9f147de79ebd (diff)
downloadart-575e78c41ece0dec969d31f46be563d4eb7ae43b.tar.gz
art-575e78c41ece0dec969d31f46be563d4eb7ae43b.tar.bz2
art-575e78c41ece0dec969d31f46be563d4eb7ae43b.zip
ART: Replace COMPILE_ASSERT with static_assert (runtime)
Replace all occurrences of COMPILE_ASSERT in the runtime tree. Change-Id: I01e420899c760094fb342cc6cb9e692dd670a0b2
Diffstat (limited to 'runtime/base/casts.h')
-rw-r--r--runtime/base/casts.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/base/casts.h b/runtime/base/casts.h
index 138c2fda8..c7e39a29f 100644
--- a/runtime/base/casts.h
+++ b/runtime/base/casts.h
@@ -77,7 +77,7 @@ template <class Dest, class Source>
inline Dest bit_cast(const Source& source) {
// Compile time assertion: sizeof(Dest) == sizeof(Source)
// A compile error here means your Dest and Source have different sizes.
- COMPILE_ASSERT(sizeof(Dest) == sizeof(Source), verify_sizes_are_equal);
+ static_assert(sizeof(Dest) == sizeof(Source), "sizes should be equal");
Dest dest;
memcpy(&dest, &source, sizeof(dest));
return dest;