Curiously Recurring Template Problem586 (7/26/2004 1:03:02 PM) Hi Gang, The following code does not compile, but I can't figure out why. The compiler complains that the CuriouslyDerivedType (CRDerived) does not publish the "value_type", yet in fact the class CRDerived does... mjmacrobert(4)
C++ Lint programs676 (7/20/2004 7:53:17 AM) Hello everyone, 1. Does anyone know of a free/gnu/opensource C++ lint tools? I have seen Splint for c but I'm at a loss for anything for c++. I have searched the list and seen unanswered posts on this topic fr... duncan_a_woods
What operators to overload when using STL containers?1228 (7/25/2004 11:01:23 AM) Hello all. This is my first post in this group. I have two questions, motivation for which arises from Microsoft ATL's CAdapt class (vide http://tinyurl.com/3ze94). 1/ "... many container classes (such as t... desh_bakth
NaNs, INFs, denorm and converting double to float/float to double5337 (7/21/2004 7:50:57 PM) Do double-to-float and float-to-double conversions preserve a class of floating point (FP) number? Look at the example below: double dval1 = f(); float fval1 = dval1; float fval2 = g(); double dval2 = fval... z(11)
Non-deducibility and specialization finalization20101 (7/9/2004 1:13:00 PM) Consider these types: template struct container { template struct impl { }; }; template struct less; template struct less... David
0 vs. NULL macro as null pointer?5112 (7/23/2004 11:39:03 PM) Hi. When referring to a null pointer constant in C++, is there any reason to prefer using 0 over a macro called NULL that is defined to be 0? Thanks! Ken [ See http://www.gotw.ca/resources/clcm.htm fo... kk_oop
Problem while making a string_proxy081 (7/25/2004 1:35:13 AM) Hi All, I designed a stl-compatible container(wrapper) for TStrings (TStrings is a structure looks like an array of strings). The container defined an iterator - "tstrings_iterator", and tstrings_itera... pwipwi
ISO C++ Standard compliance by Sun and gcc compilers10114 (7/22/2004 10:34:57 PM) Hi, Here is one sample class definition in C++ class Test { public: Test(); operator=(Test&); } When I try to compile any file using this class using Sun WorkShop 6 update 2 C 5.3 C++ compil... sacjuhu2002
Default copy operator on derivated classes7120 (7/22/2004 10:59:22 PM) I tried to run next code compiles with g++ //-------------------------------- #include class B { public: B& operator=(const B &b) { printf("BBBBBBBB \n"); return *this; }; }; class C ... Alexander