[Boost-bugs] [Boost C++ Libraries] #4584: recursive_variant_ fails with VC++ 2010's map

Subject: [Boost-bugs] [Boost C++ Libraries] #4584: recursive_variant_ fails with VC++ 2010's map
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-22 08:29:09


#4584: recursive_variant_ fails with VC++ 2010's map
---------------------------------------------+------------------------------
 Reporter: Cory Nelson <phrosty@…> | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
---------------------------------------------+------------------------------
 Code like this:

 make_recursive_variant<int, std::map<int, recursive_variant_>>::type

 Fails on VC++ because the map is instantiated which in turn instantiates
 std::pair<int, recursive_variant_>. pair does not work with the
 incomplete type recursive_variant_.

 Simple workaround is to change variant_fwd.hpp:

 struct recursive_variant_;

 to:

 struct recursive_variant_ {};

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