Subject: Re: [Boost-bugs] [Boost C++ Libraries] #426: lambda vs pure virtual functions
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-02-13 15:58:40
#426: lambda vs pure virtual functions
-------------------------------+--------------------------------------------
Reporter: sw_creator | Owner: no-maintainer
Type: Support Requests | Status: new
Milestone: | Component: lambda
Version: None | Severity: Showstopper
Resolution: None | Keywords:
-------------------------------+--------------------------------------------
Changes (by marshall):
* owner: urzuga => no-maintainer
* status: assigned => new
* component: None => lambda
* severity: => Showstopper
Old description:
> {{{
> Hello all !
> i tried to complile this code:
> -----------------------
> namespace Filter{
>
> class ResultType {...};
> class SubExpression
> {
> public:
> virtual ResultType Result()=0;
> };
> typedef boost::shared_ptr<SubExpression> SPtrSubExpression;
> ............
> void F()
> {
> namespace la=boost::lambda;
> ResultType r;
> vector<SPtrSubExpression> v;
> ..................................
> vector<SPtrSubExpression>::const_iterator
> i=find_if(v.begin(), v.end(),
> la::bind(&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.
> }}}
New description:
{{{
Hello all !
i tried to complile this code:
-----------------------
namespace Filter{
class ResultType {...};
class SubExpression
{
public:
virtual ResultType Result()=0;
};
typedef boost::shared_ptr<SubExpression> SPtrSubExpression;
............
void F()
{
namespace la=boost::lambda;
ResultType r;
vector<SPtrSubExpression> v;
..................................
vector<SPtrSubExpression>::const_iterator
i=find_if(v.begin(), v.end(),
la::bind(&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.
}}}
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/426#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC