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