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路径的前面.
同草案#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操作符重载的对象
本文地址:http://com.8s8s.com/it/it24891.htm