From 8790f71fb2f82c1dbc36e5a82005573806a4ae5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wardy=C5=84ski?= <no@email> Date: Mon, 8 Nov 2010 14:59:44 +0100 Subject: [PATCH] Fixing expected interface of sets i.e. bool intersects function, not a function returning actual intersection --- libwccl/values/strset.h | 4 ++-- libwccl/values/tset.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libwccl/values/strset.h b/libwccl/values/strset.h index 8786397..ec6b48f 100644 --- a/libwccl/values/strset.h +++ b/libwccl/values/strset.h @@ -61,9 +61,9 @@ public: return false; } - StrSet intersect(const StrSet& /*set*/) const { + bool intersects(const StrSet& /*set*/) const { //TODO: implement this - return StrSet(set_t()); + return false; } bool equals(const StrSet& /*set*/) const { diff --git a/libwccl/values/tset.h b/libwccl/values/tset.h index ba5bb5b..3c7d125 100644 --- a/libwccl/values/tset.h +++ b/libwccl/values/tset.h @@ -42,9 +42,9 @@ public: return false; } - TSet intersect(const TSet& /*tset*/) const { + bool intersects(const TSet& /*tset*/) const { //TODO: implement this - return TSet(); + return false; } bool equals(const TSet& /*tset*/) const { -- GitLab