From f625e90a0721483f7f44b94b9bb57cc9d59565e8 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 10 Feb 2017 11:48:58 -0500 Subject: Added negative filter conversions to objects --- lib/form.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/form.h') diff --git a/lib/form.h b/lib/form.h index f501ed2..e3e1185 100644 --- a/lib/form.h +++ b/lib/form.h @@ -102,6 +102,16 @@ namespace verbly { return (id == id_); } + filter operator!() const + { + if (!valid_) + { + throw std::domain_error("Bad access to uninitialized form"); + } + + return (id != id_); + } + // Relationships to other objects static field words(inflection category); -- cgit 1.4.1