Can PODs have implicit conversion, both to and from the POD, and still remain a POD?
struct POD
{
int a;
#ifdef __cplusplus
POD(int _a) : a(_a) {}
operator int() const { return a; }
#endif
};
note that I need Data
to be POD in c++ as well, I want implicit conversions only as a syntactic sugar. So I need the optimizations that a compiler would do with a POD since this is used in hot path of the program.