Odd ostringstream::str behavior?5126 (10/4/2006 9:25:17 PM) comp.lang.c++.moderated The return value of ostringstream::str seems to be depednent on what the ostringstream object is constructed with (default vs. a string construction). Here's the example code demonstrating the issue #include ... lindahlb
Ambiguously ambiguous?4124 (10/2/2006 10:23:52 PM) comp.lang.c++.moderated I'm compiling using the g++ 3.4.3, just in case this is a compiler issue. I'm getting an odd ambiguity error that appears obviously non-ambiguous (at least to me!). struct A {}; struct B {}; struct Child_A : ... lindahlb
FAQ item 35.18391 (7/31/2006 9:57:01 PM) comp.lang.c++.moderated "Why am I getting errors when my template-derived-class accesses something it inherited from its template-base-class?" Why is such an unfriendly behavior part of the language standard (assuming it is)? It seem... lindahlb
templated class typename arguments589 (3/15/2006 10:29:34 AM) comp.lang.c++.moderated template struct A { struct B {}; B operator()() const {return B();} }; struct C { template void operator()(typename A::B) {} void operator()(A::B) {} }; int main(int argc, char * argv[]) { A a0;... lindahlb
In-struct using directive273 (2/24/2006 2:31:50 AM) comp.lang.c++.moderated namespace A { template struct a {}; } namespace B { template struct b { using A::a; // how can I do this? using A; // this is acceptable too, though the above is preferable a ... ... lindahlb
lower case in the STL1169 (12/20/2005 12:32:59 AM) comp.lang.c++.moderated I've always wondered why the standards chose to go with lower case class names in the STL. Can anyone shed some light on this decision? [ See http://www.gotw.ca/resources/clcm.htm for info about ] ... lindahlb
specialization pointer to member array3137 (12/2/2005 12:35:32 AM) comp.lang.c++.moderated I've got the following two functions inside a class, the second one being a specialization of the first. template class Schema { public: template void reflect(std::string const & name, T CLASS:: * pointer... lindahlb
lindahlb's replies:
Items(4) /1
Inline Assembly - Runtime Stack Allocation2530 (7/1/2004 6:44:19 AM) comp.lang.c I'm using a temporary buffer to transfer some data and would rather not allocate it on the heap. The problem is that the size of the buffer is only known upon entry into the function that utilizes it and I'd ra... lindahlb(26)
Wondering about comp.lang.c1228 (7/2/2004 6:48:44 AM) comp.lang.c I'm a veteran C programmer (about 20 years, including PDP11 and VAX C), and I know what is on-topic here and what is not. I write standard C everywhere possible, and encapsulate non-standard code in modules tha... severian(94)
Non-Overlapping Spatial Indexing227 (8/23/2004 6:09:09 PM) comp.programming What kinds of non-overlapping spatial index structures are out there? I know of quadtrees/octrees and their linear versions, but are there others that are more size effecient (coordinate-space compact)? I have... lindahlb(26)