Opened 12 years ago
Closed 12 years ago
#4584 closed Bugs (fixed)
recursive_variant_ fails with VC++ 2010's map
Reported by: | Owned by: | ebf | |
---|---|---|---|
Milestone: | To Be Determined | Component: | variant |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
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_ {};
Change History (3)
comment:1 by , 12 years ago
comment:3 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Alright, this bug can be simplified by using std::pair directly instead of std::map.