如何隐藏Boost侵入列表钩?

时间:2018-12-14 11:45:09

标签: c++ boost intrusive-containers boost-intrusive

在以下代码中:

using namespace boost::intrusive;

struct Data {
    int i;
private:
    list_member_hook<> list_node;     // How to make this work?
};


using List = list<
    Data,
    member_hook< Data, list_member_hook<>,
    &Data::list_node>      // compiler error here.
>;

如何将list_node设为私有?

0 个答案:

没有答案