[Boost-bugs] [Boost C++ Libraries] #2864: Compilation error if container definition is inside of linked class

Subject: [Boost-bugs] [Boost C++ Libraries] #2864: Compilation error if container definition is inside of linked class
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-03-17 23:35:17


#2864: Compilation error if container definition is inside of linked class
-------------------------------+--------------------------------------------
 Reporter: d_rider_at_[hidden] | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: intrusive
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 Following code will fail to compile (at least under MSVC2005 SP1)
 {{{
 #include <boost/intrusive/list.hpp>

 using namespace boost::intrusive;

 struct Linked
 {
     list_member_hook<> _myhook;
     // list is defined inside of linked class
     list<Linked, member_hook<Linked, list_member_hook<>, &Linked::_myhook>
> mylist;
 };
 }}}

 If it's impossible to resolve this problem, I think that nuance have to be
 highlighted in documentation.

 Thanks in advance,
 Yuriy

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2864>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC