在以下代码中:
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
设为私有?