[Oktopous-users] in the file valuetostring.cpp - syntax error
Status: Beta
Brought to you by:
phonetik
From: madhu k. <mad...@gm...> - 2007-06-27 18:32:30
|
in the code given below..... its showing a syntax error : identifier "size type" please help me out of this problem... template <class T> static void ensureCapacity(std::basic_string<T>& buffer,std::basic_string<T>::_Alloc::size_type extraChars) { std::basic_string<T>::size_type requiredCapacity = buffer.length() + extraChars; if (requiredCapacity > buffer.capacity()) { buffer.reserve(2 * requiredCapacity); } } |