From d333de19802158a24d8bca35c87a711955c9aab3 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Sat, 1 Mar 2014 07:37:20 +0100
Subject: [PATCH] util/ConstBuffer: remove cast operator ConstBuffer<void>

This was bugged, because it did not scale the "size".
---
 src/util/ConstBuffer.hxx | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/src/util/ConstBuffer.hxx b/src/util/ConstBuffer.hxx
index bd3c405e5..35cffecc2 100644
--- a/src/util/ConstBuffer.hxx
+++ b/src/util/ConstBuffer.hxx
@@ -109,10 +109,6 @@ struct ConstBuffer {
 	constexpr const_iterator cend() const {
 		return data + size;
 	}
-
-	constexpr operator ConstBuffer<void>() const {
-		return { data, size };
-	}
 };
 
 #endif