Boost C++ Libraries: Ticket #426: lambda vs pure virtual functions https://svn.boost.org/trac10/ticket/426 <pre class="wiki">Hello all ! i tried to complile this code: ----------------------- namespace Filter{ class ResultType {...}; class SubExpression { public: virtual ResultType Result()=0; }; typedef boost::shared_ptr&lt;SubExpression&gt; SPtrSubExpression; ............ void F() { namespace la=boost::lambda; ResultType r; vector&lt;SPtrSubExpression&gt; v; .................................. vector&lt;SPtrSubExpression&gt;::const_iterator i=find_if(v.begin(), v.end(), la::bind(&amp;SubExpression::Result, *la::_1)==r); } } ------------------------- and I received error: c:\Program Files\boost-1-32-0\boost\tuple\detail\tuple_basic.hpp(419): error C2259: 'Filter::SubExpression' : cannot instantiate abstract class complier :VC++ 7.1 boost 1.32.0 what's wrong? thanks. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/426 Trac 1.4.3 Marshall Clow Wed, 13 Feb 2008 15:58:39 GMT owner, status, component, description changed; severity set https://svn.boost.org/trac10/ticket/426#comment:1 https://svn.boost.org/trac10/ticket/426#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">urzuga</span> to <span class="trac-author">No-Maintainer</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">lambda</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/426?action=diff&amp;version=1">diff</a>) </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> Ticket Steven Watanabe Fri, 05 Jun 2009 23:14:04 GMT <link>https://svn.boost.org/trac10/ticket/426#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/426#comment:2</guid> <description> <p> This can't be completely fixed until <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/864" title="#864: Patches: [lambda][utility] Make lambda support result&lt;&gt; (closed: fixed)">#864</a> is resolved, since the sig protocol is incapable of handling abstract types. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Wed, 09 Jun 2010 01:39:50 GMT</pubDate> <title>status, resolution changed https://svn.boost.org/trac10/ticket/426#comment:3 https://svn.boost.org/trac10/ticket/426#comment:3 <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-old">None</span> → <span class="trac-field-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/62627" title="Enable using result_of with Boost.Lambda. Fixes #426. Fixes #864">[62627]</a>) Enable using result_of with Boost.Lambda. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/426" title="#426: Support Requests: lambda vs pure virtual functions (closed: fixed)">#426</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/864" title="#864: Patches: [lambda][utility] Make lambda support result&lt;&gt; (closed: fixed)">#864</a> </p> Ticket