Type casting problem with template class in C?

I guess that you expect operator IntType() class ... operator const IntType() const; } to act here, when you assign I to j: const WRAPPER_Int32 j = I However, this is not an implicit conversion, you must do it explicitely: const WRAPPER_Int32 j = (WRAPPER_Int32) I Hope this helps.

I guess that you expect operator IntType() class ... operator const IntType() const; } to act here, when you assign I to j: const WRAPPER_Int32 j = i; However, this is not an implicit conversion, you must do it explicitely: const WRAPPER_Int32 j = (WRAPPER_Int32) i; Hope this helps.

1: This is not correct. – Oli Charlesworth May 24 at 17:22 Yep, it is wrong. Sorry to have added confusion.

– Baltasarq May 24 at 17:34.

I am not a template or type casting expert, so I really need some help. I have to use an existing template class and encounter the following type cast problem. I put some sample code to illustrtrate the problem.

And creat a variable, and try to make the conversion to get the data. What is the right way to do the conversion, or what is the problem with my code? Thanks for any comments!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions