aboutsummaryrefslogtreecommitdiff
path: root/doc/manual.xhtml
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-02 14:56:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-02 14:56:10 +0200
commit36920a538c7b207c0b36b2270108a717479e0ed1 (patch)
tree73bfd313b5159a01add308efb6c0ee4137ad16ea /doc/manual.xhtml
parent01d7849250c004d07a66a8e969c342ea48d101ca (diff)
Give more precise requirements for object id type
Diffstat (limited to 'doc/manual.xhtml')
-rw-r--r--doc/manual.xhtml11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/manual.xhtml b/doc/manual.xhtml
index 42f4ae8..6183d2b 100644
--- a/doc/manual.xhtml
+++ b/doc/manual.xhtml
@@ -2715,10 +2715,10 @@ class person
<p>The object id can be of a simple or composite (<a href="#7.2.1">Section
7.2.1, "Composite Object Ids"</a>) value type. This type should be
- default-constructible. It is also possible to declare a persistent
- class without an object id, however, such a class will have limited
- functionality (<a href="#14.1.6">Section 14.1.6,
- "<code>no_id</code>"</a>).</p>
+ default-constructible, copy-constructible, and copy-assignable. It
+ is also possible to declare a persistent class without an object id,
+ however, such a class will have limited functionality
+ (<a href="#14.1.6">Section 14.1.6, "<code>no_id</code>"</a>).</p>
<p>The above two pragmas are the minimum required to declare a
persistent class with an object id. Other pragmas can be used to
@@ -7953,7 +7953,8 @@ class person
<p>However, a value type that can be used as an object id has a number
of restrictions. Such a value type cannot have container, object
pointer, or read-only data members. It also must be
- default-constructible. Furthermore, if the persistent class in which
+ default-constructible, copy-constructible, and copy-assignable.
+ Furthermore, if the persistent class in which
this composite value type is used as object id has session support
enabled (<a href="#11">Chapter 11, "Session"</a>), then it must also
implement the less-than comparison operator (<code>operator&lt;</code>).</p>