From 240f9b0f2fced3da77176c1664c1e6e9659dd48b Mon Sep 17 00:00:00 2001
From: Adam Wardynski <award@.(win7-laptop)>
Date: Fri, 3 Dec 2010 22:09:27 +0100
Subject: [PATCH] Add assert in atleast for n > 0

---
 libwccl/ops/functions/bool/iterations/atleast.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libwccl/ops/functions/bool/iterations/atleast.h b/libwccl/ops/functions/bool/iterations/atleast.h
index fa1f644..177a591 100644
--- a/libwccl/ops/functions/bool/iterations/atleast.h
+++ b/libwccl/ops/functions/bool/iterations/atleast.h
@@ -22,6 +22,7 @@ public:
 		: Iteration(left_pos_expr, right_pos_expr, iter_var_acc, evaluating_expr),
 		  min_matches_(min_matches)
 	{
+		BOOST_ASSERT(min_matches_ > 0);
 	}
 
 	/**
-- 
GitLab