Template Parameter Initialization

Posted by isurulucky on Stack Overflow See other posts from Stack Overflow or by isurulucky
Published on 2010-06-11T10:24:04Z Indexed on 2010/06/11 10:32 UTC
Read the original article Hit count: 246

Filed under:
|
|
|

Hi,

I wrote some C++ code in which I used Templates. Since I used templates, I could not initialize a couple of template class variables. I got an warning message from valgrind saying Conditional jump or move depends on uninitialized value(s). So is there a way to get around this and/or initialize template variables?? I couldn't think of a way to do it because even if I initailize them as NULL, when I use string data type a run time failure occurres.

Thank You!

© Stack Overflow or respective owner

Related posts about c++

Related posts about templates