Boost库-Serialization-发布信息

博客介绍了序列化库需Boost Spirit包装载XML文档,spirit 1.8及以上与老编译器不兼容,可下载1.6版本并设置环境变量使用。还提及与草案#20的差异,如支持参数查找、增强文档等,以及未解决问题,如多平台测试、消除虚基类冗余等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

This is the Boost 1.32 Serialization Library. There are currently no known bugs. However, due to compiler/library quirks and or bugs, some tests fail.
这是Boost 1.32的Serialization库。目前没有发现有bugs.然而因为编译器的原因(未支持标准的C++),有一些测试还是失败了。

Requirements
需要的库

This library requires Boost version 1.32 or later. Depending on the compiler used, It may also require spirit 1.6x which is not part of the standard boost distribution.
这个库需要Boost1.32或者更晚的版本。根据使用的编译器不同。他可能需要Spriit1.6X(它还不是已发布的标准的Boost库的一部分).

The serialization library requires the boost spirit package to load XML archives. We have found that all tests pass using spirit 1.6x. Spirit 1.8 and higher does not work with older compilers - specificallly MSVC 6, Borland and GCC < 3.0. If you are using one of these two compilers, you may download a version of spirit 1.6 here. To use this downloaded version rather than the one included with boost, set an environmental variable SPIRIT_ROOT to be equal to the root directory where the downloaded copy of spirit has been placed. E. G.
这个序列库需要Boost Spririt包来装载XML文档。我们已经发现在使用了spirit1.6后该库同过了所有的测试。spririt1.8或者更高并不能同老编译器一起工作。你可以通过http://spirit.sourceforge.net/index.php?doc=download/index.html来下载1.6版本。为使用这个版本而不使用自带的版本,需要设置SPIRIT_ROOT 变量来替换。比如:
set SPIRIT_ROOT=c:/spirit161

If you're not using bjam and the jamfile to build the library, be sure that the directory which contains the version of spirit you plan to use is placed at the front of the list of include paths.
如果你不使用bjam或者jamfile来构建库,那必需确定目录包含了你打算要使用的版本的spirit。而且必需放在所有include路径的前面.


Differences from Draft #20

同草案#20的不同之处

  • Support for Argument Dependent Looup for serialization override invocations.
  • Enhanced documentation to help explain usage of the above.
  • Adjustments to improve support for less conformant compilers.
  • A few bug fixes.
  • 支持“依据参数查找”来重载序列符咒〔水平不行。那位高手来帮帮偶〕
  • 增加了文档的帮助来解释上面提到的特性的用法
  • 支持更多的不规范编译器
  • 少量的Bug修正

Pending issues

未解决问题

  • Compile, and test on more platforms
  • implement is_virtual_base<T> to automatically eliminate redundancy in virtual base class serialization.
  • currently can't serialize through a pointer an object a of class that implements its own new/delete operators.
  • 编译器,和在更多的平台测试
  • 实现is_virtual_base<T>来自动消除虚基类序列化冗余
  • 目前不能通过序列化指针指向的实现了自己new/delete操作符重载的对象


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值