The item basic_streambufto install the three "gptrs" streambuf,, setgis declared as:
basic_streambuf
setg
protected: void setg(char_type *gback, char_type *gptr, char_type *egptr);
I am wondering: why did the type of each gptr do char_type*instead const char_type*? Can const_castanyone use const char pointers for these gptrs to use here?
char_type*
const char_type*
const_cast
const, streambuf , . , underflow uflow n streambuf. /. Streambuf - , , . [io]stream ( ). , ( , , , const).
streambuf
underflow
uflow
[io]stream
? . streambuf , .
Source: https://habr.com/ru/post/1778635/More articles:Request DepthBuffer on OpenGL ES for iPhone - objective-cConverting from UNIX to Date String - objective-cUsing HiLoIdGenerator in NoRM for MongoDB to create a unique identifier - mongodbAndroid - widget breaks after reboot / reset - androidChoosing a child in jQuery, if I have a link to an element, already - jqueryWhat errors did you fix due to energy efficiency issues when developing mobile applications - androidIs there any guarantee that Python's non-callable classes will not be called? - python.NET Find Eaten Exceptions - .netWhere can I find a good introduction to character encoding? - unicodeILGenerator: load generation method - c #All Articles