Commit e7ffcb6
committed
Document that the definition file needs the archive headers
`BOOST_CLASS_EXPORT_IMPLEMENT` instantiates serialization code only for
the archive classes whose headers its translation unit has seen, so a
definition file which includes none of them instantiates nothing, and
serializing a pointer to the class throws `unregistered_class` at run
time. The rule was stated for `BOOST_CLASS_EXPORT`, but both passages
which send the reader to the `_KEY` and `_IMPLEMENT` pair presented that
split as the answer to the include ordering problem without saying that
the definition file still has to follow it.
Refs #327.1 parent 81d7615 commit e7ffcb6
2 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
447 | 458 | | |
448 | 459 | | |
449 | 460 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
251 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
| |||
0 commit comments