if (unbox<bool> (f_(boxed(xs[i])) ))
this line of code , I can also write it as
if (unbox<bool> (f_(xs[i]) ))
which can compile and run without problem. (windows vs2017 with c++ 14 standard)
So it's suggest that the compiler can convert xs[i] to boxed(xs[i]) ,
am I right? and why was that?
hi, I have a little quesion on the code .
if (unbox<bool> (f_(boxed(xs[i])) ))
this line of code , I can also write it asif (unbox<bool> (f_(xs[i]) ))
which can compile and run without problem. (windows vs2017 with c++ 14 standard) So it's suggest that the compiler can convert xs[i] to boxed(xs[i]) , am I right? and why was that?thank you for your time!