diff options
Diffstat (limited to 'odb/relational/validator.cxx')
-rw-r--r-- | odb/relational/validator.cxx | 4 |
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; |