Polymorphism and "interface_cast"3129 (11/19/2010 2:03:16 PM) comp.lang.c++.moderated
I was wondering why I have to express the interface relationships
on the object definition.
I don't have to express in the object type, for instance, if it
is allocated on the stack or on the heap then... Thiago
Dot operator Overloading11124 (3/31/2010 4:36:41 PM) comp.lang.c++.moderated
Using function notation we have expressions like that:
F(G(H(X)))
Where we have to read from inside to outside. It is not so bad; this
is the normal mathematical notation.
However in some cases, I w... Thiago
TkGen - A Lexical Analyzer Generator (online)0291 (11/27/2009 3:36:21 PM) comp.lang.c++.moderated Hi folks,
I have implemented an online tokenizer generator for C++ and I would
like to share with those interested.
The web site is:
http://www.thradams.com/codeblog/tkgen.htm
It is an initial projec... Thiago
virtual operator =877 (5/9/2007 8:14:07 AM) comp.lang.c++.moderated Can anyone imagine one reason to create the "operator =" virtual? class X { .... virtual X & operator = (const X &) { ... } .... } I didn't find any. -- [ See http://www.gotw.ca/resources/clcm.h... Thiago
Should the shared_ptr have release method?1871 (1/2/2007 6:50:45 PM) comp.lang.c++.moderated In the boost site there is an FAQ answering why the shared_ptr doesn't have the release method. http://www.boost.org/libs/smart_ptr/shared_ptr.htm#FAQ In general I think that the shared_ptr is not a tool just... Thiago
sizeof member function pointer995 (1/12/2006 12:24:36 PM) comp.lang.c++.moderated Considering: template class pmemfunc { typedef void (T::*PFUNC)(void); PFUNC f_; T *o_; }; My question is: the sizeof(pmemfunc) is the same for any T ? If the answer of my question is true, I will use ... thiago
The string returned by typeid(X).name()10137 (8/3/2005 3:28:09 PM) comp.lang.c++.moderated Hello, The string returned by typeid(X).name() must be equal for any compiler? If I use this string for class serialization in text mode I can use the serialization code in another compiler? thanks [ Se... thiago
How to implement a type safe bit set?6117 (7/14/2005 1:16:25 AM) comp.lang.c++.moderated I would like to create a named bitset. In C/C++ it's generally made with enums or #define. for example: enum FontStyle { FontStyleBold = 1 << 1, FontStyleItalic = 1 << 2, FontStyleUnderline = 1 << 3 }... Thiago
Exceptions91125 (6/29/2005 2:50:59 PM) comp.lang.c++.moderated Hi, I have a lot of questions about exceptions. In the sample below: struct E( . . . ~E(){} ); int main() { try { throw E(); } catch(const E &e) { e.some(); } } When ~E will be called? Whi... Thiago