Ticket #6763 (closed Bugs: fixed)

Opened 4 years ago

Last modified 3 years ago

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


Change History

comment:1 Changed 3 years ago by igaztanaga

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

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


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
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.