- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here is sample code, which compiles fine with both GCC and MSVC, but ICC 13.5 generates an error "error: invalid type conversion: "const B *" to "const boost::intrusive::detail::node_holder....."
[cpp] #include <boost/intrusive/list.hpp> class A { public: boost::intrusive::list>> m_list; }; //class B : public A, public boost::intrusive::list_base_hook<> {}; // to make possible compilation with icc, uncomment this line [/cpp]
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It seems this forum very dislike my code snippet. :)
Here is the corrected version:
[cpp]#include <boost/intrusive/list.hpp>
class A
{
public:
boost::intrusive::list<class B, boost::intrusive::base_hook<boost::intrusive::list_base_hook<>>> m_list;
};
//class B : public A, public boost::intrusive::list_base_hook<> {}; // to make possible compilation with icc, uncomment this line
[/cpp]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page