diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-11 11:06:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-11 11:06:34 +0200 |
commit | d780414989ef7e101cdaf269d4b01003d0721e6a (patch) | |
tree | f657033eebe7d38032c4ad1ad4e202c990bb0d8c /odb/validator.cxx | |
parent | e56ba020233ad7cb4762df300a6774db9195d817 (diff) |
Generalize pragma code to support arbitrary types for context values
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r-- | odb/validator.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx index 0494741..bf7784e 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -24,16 +24,16 @@ namespace if (n.count (p + "null") && n.count (p + "not-null")) { - if (n.get<location_t> (p + "null-loc") < - n.get<location_t> (p + "not-null-loc")) + if (n.get<location_t> (p + "null-location") < + n.get<location_t> (p + "not-null-location")) { n.remove (p + "null"); - n.remove (p + "null-loc"); + n.remove (p + "null-location"); } else { n.remove (p + "not-null"); - n.remove (p + "not-null-loc"); + n.remove (p + "not-null-location"); } } } @@ -334,7 +334,7 @@ namespace valid_ = false; } else - id->set ("not-null", string ()); + id->set ("not-null", true); } // Check members. |