aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-03 21:35:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-03 21:35:43 +0200
commitbbc39ffe31c67506b4c03fc56fa3adcb925b6325 (patch)
treecdc3e2bb6f66edab684ee184a28c35727246f448 /odb/validator.hxx
parentf0bbc17aeed1b636782a4b92e8191d90f310d0a2 (diff)
Remove gratuitous classes
In the process also get rid of global class processor which conflicts with enum processor on MIPS.
Diffstat (limited to 'odb/validator.hxx')
-rw-r--r--odb/validator.hxx28
1 files changed, 9 insertions, 19 deletions
diff --git a/odb/validator.hxx b/odb/validator.hxx
index f913049..3ffa470 100644
--- a/odb/validator.hxx
+++ b/odb/validator.hxx
@@ -9,25 +9,15 @@
#include <odb/features.hxx>
#include <odb/semantics/unit.hxx>
-class validator
-{
-public:
- struct failed {};
+class validator_failed {};
- // The first pass is performed before processing. The second -- after.
- //
- void
- validate (options const&,
- features&,
- semantics::unit&,
- semantics::path const&,
- unsigned short pass);
-
- validator () {}
-
-private:
- validator (validator const&);
- validator& operator= (validator const&);
-};
+// The first pass is performed before processing. The second -- after.
+//
+void
+validate (options const&,
+ features&,
+ semantics::unit&,
+ semantics::path const&,
+ unsigned short pass);
#endif // ODB_VALIDATOR_HXX