H
hsharsha
Consider the below code:
extern __declspec(dllimport) int myvariable;
template<const int *p>
class MyClass{
public:
static void myfunction(){
}
};
int main(void){
MyClass<&myvariable>::myfunction();
return 0;
}
"A dllimport variable is accessed indirectly through a variable and
therefore does not have a constant address". Is this statement valid /
correct ???
extern __declspec(dllimport) int myvariable;
template<const int *p>
class MyClass{
public:
static void myfunction(){
}
};
int main(void){
MyClass<&myvariable>::myfunction();
return 0;
}
"A dllimport variable is accessed indirectly through a variable and
therefore does not have a constant address". Is this statement valid /
correct ???