Boost C++ Libraries: Ticket #6763: flat_map fails to compile with VC11 Beta. https://svn.boost.org/trac10/ticket/6763 <p> The following code </p> <div class="wiki-code"><div class="code"><pre> <span class="n">boost</span><span class="o">::</span><span class="n">container</span><span class="o">::</span><span class="n">flat_map</span><span class="o">&lt;</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="p">,</span> <span class="n">boost</span><span class="o">::</span><span class="n">any</span><span class="o">&gt;</span> <span class="n">fm</span><span class="p">;</span> <span class="n">fm</span><span class="p">[</span><span class="s">&quot;answer&quot;</span><span class="p">]</span> <span class="o">=</span> <span class="mi">42</span><span class="p">;</span> </pre></div></div><p> fails with </p> <pre class="wiki">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&lt;U&gt;::type' [snip...] </pre><p> It looks like "(_MSC_VER != 1600)" needs to be "(_MSC_VER &lt; 1600)" in boost\intrusive\detail\has_member_function_callable_with.hpp (line 116). </p> <p> -- </p> <p> Orhun Birsoy </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6763 Trac 1.4.3 Ion Gaztañaga Thu, 12 Jul 2012 08:47:13 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6763#comment:1 https://svn.boost.org/trac10/ticket/6763#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Thanks for the report, fixed in trunk at revision 77889. </p> Ticket