Can not find shrink_to_fit()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello all,

I have been trying to use the C++ STL vector that is given in the
header <vector> using gcc-4.7.2.
However, when I tried using the function shrink_to_fit() using an
object of a vector, I got an error saying :

‘class std::vector<cs_dfa*>’ has no member named ‘shrink_to_fit’

where cs_dfa is a structure that I have declared.

Kindly help.


Sudakshina Das

GCC Resource Center
Department of Computer Science & Engineering
IIT - Bombay
India





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux