Life & Code

代码是咒语,我是魔法师

错误: use of undefined type 'boost::STATIC_ASSERTION_FAILURE'

在编绎BOOST::Serialization 例子的时候,遇到的错误.

    // if your program traps here, it indicates taht your doing one of the following:
    // a) serializing an object of a type marked "track_never" through a pointer.
    // b) saving an non-const object of a type not markd "track_never)
    // Either of these conditions may be an indicator of an error usage of the
    // serialization library and should be double checked.  See documentation on
    // object tracking.

解决:
BOOST_CLASS_TRACKING(MyClass, boost::serialization::track_never)

posted on 2006-07-18 10:20 橙子 阅读(547) 评论(0)  编辑 收藏 引用 所属分类: C++ & STL


标题  
姓名  
主页
验证码 *
内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)  
  登录  使用高级评论  新用户注册  返回页首  恢复上次提交      
[使用Ctrl+Enter键可以直接提交]

相关链接:
网站导航:



<2006年8月>
303112345
6789101112
13141516171819
20212223242526
272829303112
3456789

导航

统计

常用链接

留言簿(5)

随笔分类

随笔档案

相册

收藏夹

搜索

最新评论

阅读排行榜