Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 322467

Summary: No support for headers included in different variants, e.g.: boost/function.hpp
Product: [Tools] CDT Reporter: Vasiliy Dybala <dibalavs>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: waste.manager, yevshif, zeratul976
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Vasiliy Dybala CLA 2010-08-12 02:37:17 EDT
#include <boost/function.hpp>

void func(char val){}

void f1(boost::function<void (char)> t){}

void test()
{
	f1(func);
}


eclipse could not parse f1(func);

P.S. if replace f1 to void f1(boost::function<void (void)> t){}

eclipse parse f1(func); sucessfully, but this code could not be compiled :) .

boost version 1.40.0

-- Configuration Details --
Product: Eclipse 1.3.0.20100617-0520 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.0.v20100602-9gF78GpqFt6trOGhL60z0oEx3fz-JKNwxPY
Comment 1 Markus Schorn CLA 2010-08-13 07:50:42 EDT
The header 'boost/function.hpp' includes the same header multiple times with different macro dictionaries. CDT currently does not support that.
Comment 2 Markus Schorn CLA 2010-12-23 07:23:21 EST
*** Bug 332280 has been marked as a duplicate of this bug. ***
Comment 3 Sergey Prigogin CLA 2011-07-05 11:33:45 EDT

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