YAMI4 - Messaging Solution for Distributed Systems I am pleased to announce the availability of version 1.0.0 of the YAMI4 library: http://www.inspirel.com/yami4/ YAMI4 is a messaging solution for distributed systems. Typical uses of this library include control and monitoring systems, with real-time and embedded installations, where reliability, performanc... 1 Mar 2010 17:34
Operator chaining I have a class A which overloads + operator; I am confused about the order of evaluation in the following expression A a,b,c,d; d = a + b + c; how is the right hand side of the expression evaluated. Is a+b performed first or b+c performed first? Thanks for any help. -- [ See http://www.gotw... 2 Mar 2010 14:38
chapter and verse needed for matching new[] to delete[] I am familiar with the need to match new[] to delete[]. It is a programming error to say new[] then say delet without the square brackets. In some environments this can lead to heap corruption, as Meyers warns in item 5 of Effective C++. What I am looking for is chapter in verse in the std that says this is wron... 1 Mar 2010 17:34
Converting new [] to vectors I am currently working on some legacy software, and I tend to replace calls to new/delete with auto_ptrs and new[]/delete[] with vectors ... but how do I implement the following whist maintaining RAII, is there a std method of doing this? float (* coords)[3] = NULL; .... long numPoints = sourceOfPoin... 4 Mar 2010 15:46
Unknown syntax - Template parameter void(void) Hi everyone, I came across a syntax that I haven't seen before, and I can't work out what it means. Hoping someone can help me because I just have to know. template <typename T = void(void)> class Foo { }; I've compiled it now under Microsoft Visual C++ and GNU C++ (under MingW). Unfortunately, I don... 27 Feb 2010 02:21
std::vector<char> instead of std::string, where are the string searching functions? I am working with some legacy code that is in the process of changing to use std::vector<char> instead of a C-style char array. The C-style char array is currently allocated using new char [n]. This array is passed to various C string functions such as strstr, strncmp etc. I need to do the same work but with a std:... 27 Feb 2010 15:26
omission of "virtual" in overridden method declarations in derived classes On Feb 23, 7:58 pm, Paul Bibbings <paul.bibbi...(a)gmail.com> wrote: "Marco Nef" <maill...(a)shima.ch> writes: Some time ago I asked to change this in the new standard, so that virtual must be repeated in derived classes. But the reply in this group was that lots of old code would not compile anymore. Tha... 26 Feb 2010 08:30
Best practice for maintaining an internal reference/pointer to another class Sal wrote: Imagine you have two classes, ClassA, and ClassB. ClassA is just some class that changes its internal state from time to time, and ClassB is a class that provides additional content, based on the current state of a ClassA instance [...] class ClassA; class ClassB { ClassA ... 26 Feb 2010 08:30
Best practice for maintaining an internal reference/pointer to another class Alright, so I've been working on a monitoring class for a little while now and I realized that the way I am maintaining my internal references to the monitored class may not be the most obvious to users. Perhaps let me explain how I am doing it now, and then I'd be welcome to suggestions to alternative approaches. ... 26 Feb 2010 18:40
exact difference between C style and static_cast, const_cast O wise and powerful clcm, What's the precise difference between C style casts, and static_cast. I've always been told that static_cast and const_cast casts are better, but I'd like to know exactly in what circumstances they differ so I can make that judgement myself. Giving me a reference to something in the C... 26 Feb 2010 18:40 |