Opened 6 years ago

Closed 5 years ago

#6763 closed Bugs (fixed)

flat_map fails to compile with VC11 Beta.

Reported by: orhunbirsoy@… Owned by: Ion Gaztañaga
Milestone: To Be Determined Component: intrusive
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:


The following code

    boost::container::flat_map<std::string, boost::any> fm;
    fm["answer"] = 42;

fails with

boost/intrusive/detail/has_member_function_callable_with.hpp(133): error C2228: left of '.max_size' must have class/struct/union
 type is 'boost::move_detail::add_rvalue_reference<U>::type'

It looks like "(_MSC_VER != 1600)" needs to be "(_MSC_VER < 1600)" in boost\intrusive\detail\has_member_function_callable_with.hpp (line 116).


Orhun Birsoy

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Thanks for the report, fixed in trunk at revision 77889.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.