Posted by
Ballabio Gerardo-4 on
URL: http://quantlib.414.s1.nabble.com/Extending-QLXL-and-serialization-issue-tp13901p14036.html
-----Messaggio originale-----
Da: Eric Ehlers [mailto:
[hidden email]]
> We had long debates about how to guarantee compatibility across releases. We considered solutions such as never deleting any types from the serialization framework, even if the type is deprecated. But even then you have the problem of existing types changing and so you have to version each type. It's just a burden of using boost::serialization.
Changing or deleting existing types is an API break. When you're doing that, it's reasonable to expect that you may break compatibility of serialized files too. But compatibility could at least be preserved between non-API-breaking releases.
How difficult would it be to modify gensrc so that it reads the list of types from a file and registers them in the order as they are written, instead of alphabetically? Then new types could always be added at the end of the list without changing the numbers of existing types, while deletions and reorderings would be reserved to API-breaking releases.
Gerardo
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head></head>
<body>
<div style="font-family:Calibri;font-size:10px">
Banca Profilo S.p.A.
Corso Italia, 49 - 20122 Milano - Tel. 02 58408.1, Fax 02 5831 6057
Capitale Sociale Euro 136.794.106,00 i.v.
Iscrizione al Registro Imprese di Milano, C.F. e P.IVA 09108700155 -
[hidden email]
Iscritta all’Albo delle Banche e dei Gruppi bancari
Aderente al Fondo Interbancario di Tutela dei depositi
Aderente al Conciliatore Bancario Finanziario e all’Arbitro Bancario Finanziario
Appartenente al Gruppo bancario Banca Profilo e soggetta all’attività di direzione e coordinamento di Arepo BP S.p.A.
DISCLAIMER:
The information transmitted may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon,
this information by persons or entities other than the intended recipient is prohibited.
If you received this in error, please contact the sender and delete the material from any computer.
</div>
</body>
</html>
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users