Shallow\Deep copy Hi, I'll do my best to explain my problem... I have an data type that is wrapping a vector of pointers, currently I have no control of the type that the vector holds and I need to be as generic as I can (it's a part of a frame work). naturally my vector is templated by the client. I tried to think of a way to de... 9 Oct 2009 17:06
Help With TR1 regex_match() Hi All, Should... regex_match("12345 ", "(.*|\s)*A.B.C.") ....yield true or false (or throw an exception)? It is returning true for me. -Le Chaud Lapin- -- [ See http://www.gotw.ca/resources/clcm.htm for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] ... 11 Oct 2009 17:06
Recursive friendship Can I. and if so how, achieve class X { private: void f(); friend void Y::g(); }; class Y { private: void g(); friend void X::f(); }; Obviously I can forward declare class Y before X, but that's not sufficient. The obvious workaround is class friendship. And a desi... 6 Oct 2009 11:25
Help needed to overload function template. Hi, I want to have two template functions erase_if, one for regular containers and another for associative containers. If I leave the code as below the compiler will complain about ambiguity. I tried to use template template parameters but could not figure it out in a proper way. Any suggestions ? te... 1 Oct 2009 18:26
Warning: Can't find linker symbol hi all, Can anybody please explain about the following warning?? warning: can't find linker symbol for virtual table for `MyString' value warning: found `MyString::MyString()' instead. MyString is the class written for string handling. Best Regards, Sadanand. -- [ See http://www.gotw.ca/resour... 14 Sep 2009 17:32
Structured Exception Handling in C++ hi all, I want to handle invalid pointer operations in my application using exception handling, in visual studio __try , __catch are used for SEH ( Structured Exception Handling) but how can I handle the same in GCC. For example I want to catch EXC_BAD_ACCESS exception in my C++ application. -- [ See... 9 Sep 2009 14:13
programmatically get a stack trace from within C++, ported to unix and windoze On 27 Aug, 22:36, Andrew <marlow.and...(a)googlemail.com> wrote: I am trying to port lucidDb to solaris. It currently is only buildable on linux or windoze. It turns out that on these platforms it knows how to programmatically get a stack trace at runtime from within C++ (as opposed to using gdb or something ... 6 Sep 2009 04:24
How do you exception in your daily C++ programming? - test.cpp (0/1) On 5 sep, 07:01, George Neuner <gneun...(a)comcast.net> wrote: Unless you're targeting 64-bit windows, you're not testing a particularly good EH implementation. ??? 64-bit Windows uses the same SEH implementation as 32-bit. C++ EH is slightly faster than Windows SEH. In VS2008 you can choose whi... 7 Sep 2009 02:19
operator== for aggregate types / member wise comparison Hi all! Given: struct agg { int x; int y; double z; std::string tag; std::vector<long> data; // ... }; Is there any way in C++ to automatically generate a memberwise operator== / operator!= or do you always have to code these operators yourself? (I don't currently see the requirem... 20 Sep 2009 20:41
Performance Factors in C++ On 30 ao�t, 01:24, Thomas Maeder <mae...(a)glue.ch> wrote: IMHO, this kind of optimization is best left to the Standard Library implementation. Just use std::copy and let the library implementation sort out which optimizations apply. std::copy can't even call memcpy since the arguments are not guaran... 17 Sep 2009 11:15 |