summaryrefslogtreecommitdiff
path: root/odb/relational/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-06-15 12:36:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-06-15 12:36:53 +0200
commite78db08d98d5adb4dee3006eea8c3569e383c562 (patch)
tree4df1473c158d69ee7b53c75cc61f1a282b72da99 /odb/relational/validator.cxx
parentbbc39ffe31c67506b4c03fc56fa3adcb925b6325 (diff)
Add points_to pragma
Currently does not support containers.
Diffstat (limited to 'odb/relational/validator.cxx')
-rw-r--r--odb/relational/validator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/relational/validator.cxx b/odb/relational/validator.cxx
index 47f089c..3b867f8 100644
--- a/odb/relational/validator.cxx
+++ b/odb/relational/validator.cxx
@@ -59,9 +59,9 @@ namespace relational
const char* kp (container (m) ? "value" : "");
location l (m.location ());
- // Make sure it is a pointer.
+ // Make sure it is a pointer or a member with points_to pragma.
//
- if (!object_pointer (member_utype (m, kp)))
+ if (!object_pointer (member_utype (m, kp)) && !points_to (m))
{
error (l) << "on_delete specified for non-object pointer" << endl;
valid_ = false;