/// "minimal" example using dynamic_properties after including dynamic_bitset, forcing operator>> into std, compiles again #include #include #include /// this is the bad include #include typedef boost::shared_ptr my_t; /// commented out //inline std::istream& operator>> (std::istream& is, my_t&) { return is; } /// we have to force operator>> into namespace std when we include dynamic_bitset! namespace std { inline std::istream& operator>> (std::istream& is, my_t&) { return is; } } typedef boost::property< boost::graph_name_t, my_t > graph_p; typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::directedS, boost::no_property, boost::no_property, graph_p > graph_t; typedef boost::ref_property_map gname_p; int main() { graph_t g(0); boost::dynamic_properties dp; gname_p gname(boost::get_property(g, boost::graph_name)); dp.property("name", gname); } // Local Variables: // mode: C++ // End: