[Boost-bugs] [Boost C++ Libraries] #4108: C2139 error in VS2010

Subject: [Boost-bugs] [Boost C++ Libraries] #4108: C2139 error in VS2010
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-17 16:19:24


#4108: C2139 error in VS2010
-------------------------------+--------------------------------------------
 Reporter: ka3a4ok@… | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: None
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: C2139 2139 VS2010 |
-------------------------------+--------------------------------------------
 VC2008 can compile this code, but VS2010 can't. Error log attached.

 {{{
 #include <boost/variant.hpp>
 #include <boost/shared_ptr.hpp>

 struct NonTerminal;
 struct Terminal;

 typedef boost::variant
 < boost::recursive_wrapper<NonTerminal>,
         Terminal
> AST;

 struct NonTerminal
 {
 public:
         NonTerminal(boost::shared_ptr<AST> a):
           m(a)
         {

         }

         boost::shared_ptr<AST> m;
 };

 struct Terminal
 {

 };

 void main()
 {

 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4108>
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:50:02 UTC