From f76f73980539b978ecf54798f6e6910462405e81 Mon Sep 17 00:00:00 2001 From: Neil MacIntosh Date: Mon, 30 Nov 2015 18:20:14 -0800 Subject: [PATCH] Addressing #178: wrong return type for function. --- include/span.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/span.h b/include/span.h index fd15472..6ee810d 100644 --- a/include/span.h +++ b/include/span.h @@ -327,9 +327,9 @@ namespace details } template - bool contains(const T&) const + size_type contains(const T&) const { - return false; + return -1; } size_type elementNum(size_t) const noexcept { return 0; }