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 橙子 阅读(1356) 评论(0)  编辑 收藏 引用 所属分类: C++ & STL


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


<2006年7月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿(10)

随笔分类

随笔档案

相册

收藏夹

搜索

最新评论

阅读排行榜