Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332280 - Parser cannot recognize conversion from a function to boost::function
Summary: Parser cannot recognize conversion from a function to boost::function
Status: CLOSED DUPLICATE of bug 322467
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-10 03:42 EST by Nathan Ridge CLA
Modified: 2010-12-23 07:23 EST (History)
1 user (show)

See Also:


Attachments
preprocessed source code (970.68 KB, text/plain)
2010-12-10 03:42 EST, Nathan Ridge CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Ridge CLA 2010-12-10 03:42:54 EST
Created attachment 184925 [details]
preprocessed source code

The parser gives an error for the following code:

#include <boost/function.hpp>
void f(boost::function<void()> f) {}
void g();
int main()
{
    f(g);  // ERROR HERE
    return 0;
}

The error is:

Invalid arguments Candidates are: void f(boost::function<void ()>)

The code is valid and compiles fine with g++ 4.x

I have attached the preprocessed source code.
Comment 1 Markus Schorn CLA 2010-12-23 07:23:21 EST

*** This bug has been marked as a duplicate of bug 322467 ***