P
puru
I have a template class like below.
template <TInt S> class XYZ
{
}
const XYZ<10> abc; //Instance of the class
How do remove the constantness of abc using const_cast. I mean, I want
the syntax for that. Something like const_cast<XYZ<10>> abc gives
compiler error.
template <TInt S> class XYZ
{
}
const XYZ<10> abc; //Instance of the class
How do remove the constantness of abc using const_cast. I mean, I want
the syntax for that. Something like const_cast<XYZ<10>> abc gives
compiler error.