Blob Blame History Raw
From 597e9788bf55973c7af25f1f076fcaa53c5cf2ab Mon Sep 17 00:00:00 2001
From: Eric Fiselier <eric@efcs.ca>
Date: Thu, 29 Dec 2016 14:23:40 -0700
Subject: [PATCH] Fix conversion build error when building with Clang 4.0

---
 src/capnp/layout.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/capnp/layout.h b/src/capnp/layout.h
index 7886262..5cdd8b0 100644
--- a/src/capnp/layout.h
+++ b/src/capnp/layout.h
@@ -126,7 +126,7 @@ template <> struct ElementSizeForType<Void> { static constexpr ElementSize value
 template <> struct ElementSizeForType<bool> { static constexpr ElementSize value = ElementSize::BIT; };
 
 // Lists and blobs are pointers, not structs.
-template <typename T, bool b> struct ElementSizeForType<List<T, b>> {
+template <typename T, Kind K> struct ElementSizeForType<List<T, K>> {
   static constexpr ElementSize value = ElementSize::POINTER;
 };
 template <> struct ElementSizeForType<Text> {
-- 
2.9.3