|
First
|
Prev |
Next
|
Last
Pages: 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183
int used in char_traits I have a question about C++ standard. First I will start with some "facts" given in the Standard. 1) 1.7 (1) We find here that C++ memory model consists of "bytes". Each byte is at least large enough to containt any member of "basic execution character set" which means it must be able to store at le... 15 Sep 2006 10:25
ifstream exception handling In the following code I catch general ios_base::failure, then checks ifstream state. Is there EOF as separate exception of any status withing exception instance. Anyway, is this code optimal? ifstream ifs; try { ifs.exceptions(ios_base::eofbit | ios_base::failbit | ios_base::badbit); ifs.open(strFil... 29 Aug 2006 12:18
STL Book { obvious answers apply: FAQ, newsgroup archives, www.accu.org, please try not to repeat them. thanks. -mod } I'm running a C++ for quants course soon, and it occurs to me that I haven't got a book recommendation for STL. The target audience is people who've bumped into vector, and have some schematic knowled... 12 Sep 2006 06:52
C++ Primer 4th Edition errata? I can't find this anywhere on the web. I've tried e-mailing Barbara Moo, but my message is blocked. Can anyone tell me where I can find it? I'm confused by section 15.5.4. Is it possible to call Base::fcn() through a pointer to D1? The text on p594 says this is not possible, but the code on p595 says that th... 29 Aug 2006 11:45
Memory Layout - Private , Protected and Public member { assuming the poster has read all there is about access specifiers in the FAQ, please give answers that extend the FAQ, not repeat it. -mod } How does C++ prevent accessing of the protected , private members in its memory layout. Sujay [ See http://www.gotw.ca/resources/clcm.htm for info about ] ... 29 Aug 2006 15:31
Callback-related libraries and terminology I've been trying to make sense of Boost.Signals, especially in terms of some other libraries I'm familiar with. Part of the problem is terminology, I think, e.g., callbacks, slots, and delegates (as in .NET, but also as used by some for bound member function pointers (e.g.,http://www.codeproject.com/cpp/FastDelega... 2 Sep 2006 11:33
Contour Iterators (or Cursors) Hi. Recently I have been working on problems where I need to iterate over a cyclic structure; the edges of a "face" in a planar map, for example (a planar map partitions the plane into faces, edges, and vertices). In this case the planar map is encoded as a "doubly connected edge list". Each edge has a start ver... 24 Aug 2006 09:51
VC8 compiler behavior? The code below does not compile with VC8. The error is: sample.cpp(36) : error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::vector<_Ty>' (or there is no acceptable conversion) with [ _Ty=int ] but it is clearly there. Is ... 23 Aug 2006 10:04
std::IStream size limitation Hi, Newbie alert: Please be nice :) I'm using IStream (basic_iostream class to be specific) interface and I am trying to store very large Unicode XML data into a stream and it seems to be overflowing. The symptom for the overflow *seems* to be related to the size of the data that I am trying to stream in. If... 21 Aug 2006 08:11
container of iterators Hi all, A query I hope someone might help with: If I have an iterator "It" to an element of some container "C", is there any way possible that I can get the address of "C" knowing "It" The answer I know is No. But if getting the address of the container is a requirement, what would be the best to achiev... 8 Aug 2006 07:10 |