小编use*_*749的帖子

使用Boost.Serialization进行序列化

我一直在尝试序列化,但每次我遇到如下错误: -

error: 'class std::vector<int, std::allocator<int> >' has no member named 'serialize'
Run Code Online (Sandbox Code Playgroud)

这是我的源代码和序列化方法,知道我使用的是boost.serialize

template <class E, class T>
class heap{

    vector<E> * hp;
    int index;//index is pointing to first empty place after the last element
    int maxsize;

    T comp;//comparable object designed to compare the objects

private:
    friend class boost::serialization::access;
    // When the class Archive corresponds to an output archive, the
    // & operator is defined similar to <<.  Likewise, when the class Archive
    // is a type of input archive …
Run Code Online (Sandbox Code Playgroud)

c++ serialization boost vector boost-serialization

7
推荐指数
1
解决办法
4288
查看次数

有没有办法在java中创建xsd架构?

Java中有没有办法创建XSD架构?我正在尝试.xsd根据作为输入提供给我的属性数量和类型创建新的模式文件.有没有一个包可以帮我做这个工作?

java xml xsd

5
推荐指数
1
解决办法
273
查看次数

C++实现了数据结构库?

我已经使用了很长时间的Java,并且看到有大量数据结构的实现,如列表,哈希表,队列,额外的树.但是现在我更关心c ++ 是否有任何以前为这些数据结构实现的库?

c++

-2
推荐指数
1
解决办法
3547
查看次数

标签 统计

c++ ×2

boost ×1

boost-serialization ×1

java ×1

serialization ×1

vector ×1

xml ×1

xsd ×1