The ChipList, by Adrian Offerman; The Processor Portal

new
Processor Selector

Platform:
Segment:
View: show / edit

bookmark bookmark site
bookmark permalink
Tue 7 Apr 2009, 20:24

__restrict keyword causes error: no instance of overloaded function matches the argument list


On Tue 7 Apr 2009, at 20:24, Intel Software Network Graphics Feed wrote:

__restrict keyword causes error: no instance of overloaded function matches the argument list

Problem : 

The following code fails to compile with Intel C++ compiler.

template< class T >
class C
{
public:
void foo();
void foo(const T& src);
};

struct B
{
int a;
int b;
};
class A {
void bar();
C<B *> m_t;
};
void A::bar()
{
B * __restrict p;
m_t.foo(p);
}



Environment : 

Windows, MSVC

Root Cause : 

__restrict keyword was not handle properly

Resolution : 

Resolve in the latest version of Intel C++ Compiler 11.1.

Workaround, remove __restrict.

Filed under: Developer CommunitiesIntel SW Partner program
Source: Intel Software Network Graphics Feed
Also published by:

ChipList news channel Last Months News


ChipList developers news channel Last Months Developers News


Page viewed 5060 times since Tue 7 Apr 2009, 20:41.