Opened 11 years ago

Closed 10 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:

Description

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'
 [snip...]

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 (1)

comment:1 by Ion Gaztañaga, 10 years ago

Resolution: fixed
Status: newclosed

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

Note: See TracTickets for help on using tickets.