Opened 5 years ago

Closed 5 years ago

#6763 closed Bugs (fixed)

flat_map fails to compile with VC11 Beta.

Reported by: orhunbirsoy@… Owned by: igaztanaga
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 igaztanaga

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain igaztanaga.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.