Hi, I upgraded to Intel Parallel Studio Update 2. I have a project that fails to compile after the upgrade. It was building with the Intel C++ compiler successfully before the upgrade. It also builds successfully with the Visual C++ compiler. This class uses templates. Here is an example of the errors I see:
Error 4 error: declaration is incompatible with "void TimeSeries::SetDiscountRate(double, TimeSeries::DiscountMethod)" (declared at line 85) W:\cp107update2\ctc\CapitalPlanning\TimeSeries\TimeSeriesT.h 476
Here's lines 475-477:
template< class T >
void TimeSeries< T >::SetDiscountRate( double dRate, enum DiscountMethod eMethod )
{
Here's part of the class declaration:
template< class T >
class TimeSeries
{
public:
void SetDiscountRate( double dRate, DiscountMethod method );
};
The declaration of SetDiscountRate is line 85.
What has changed in Intel Composer between Parallel Studio update 1 and update 2 that could cause this? Is there a work-around?
Cheers,
Albert


