|
Boost : |
From: SourceForge.net (noreply_at_[hidden])
Date: 2005-07-02 06:09:57
Support Requests item #1231445, was opened at 2005-07-02 14:09
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1231445&group_id=7586
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: SP (sw_creator)
Assigned to: Nobody/Anonymous (nobody)
Summary: lambda vs pure virtual functions
Initial Comment:
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.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1231445&group_id=7586
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk