thrust help ~~~# Programming - 葵花宝典
c*e
1 楼
class A
{
public:
template
operator T & ()
{
return *(new T);
}
template
operator T * ()
{
return (new T);
}
};
int main ()
{
A a;
int & i = a; //wont compile under gcc3.2.3 but ok with 3.4
int * j = a;
}
what does the spec say about this?
thx a ton!
{
public:
template
operator T & ()
{
return *(new T);
}
template
operator T * ()
{
return (new T);
}
};
int main ()
{
A a;
int & i = a; //wont compile under gcc3.2.3 but ok with 3.4
int * j = a;
}
what does the spec say about this?
thx a ton!