First  |  Prev |  Next  |  Last
Pages: 49 50 51 52 53 54 55 56 57 58 59 60 61
Can I have Pure Virtual Destructor?
Hi, Can there be any use of "Pure Virtual Destructor"? If yes, then in what scenario do we use it? Thanks in advance. Warm Regards. -- [ See for info about ] [ comp.lang.c++.moderated. First time posters: Do this! ] ... 15 Mar 2007 14:18
class template syntax, maybe?
Hi All, I am hoping somewhat might enlighten me as to what exactly is wrong with the code snippet below, I can't see anything syntactically wrong with it but GCC-4.03 is not happy; and the last thing I want is blame the compiler. #ifndef NICTA_SEQCONTAINER_BACKINSERTER_0_H #define NICTA_SEQCONTAINER_BAC... 5 Feb 2007 12:53
BinaryPredicate Question
I'm trying to figure out is the following technique is valid. Given std::vector<DataItem> cache; which is sorted by the ID_ field of each DataItem. And this Predicate class: class IdLessThan: public std::binary_function<long, DataItem, bool> { public: bool operator() ( long lhs, const DataI... 31 Jan 2007 03:07
Exception alternatives
Greetings to all, I would like to ask, or hear some thoughts, if possible, about exceptions alternatives; I know this is very well discussed topic (with unclear solutions at the end ;-)), but my search through groups archives didn't yield any usefull solution, nor unfortunately, may popular books sais anything ... 13 Jan 2007 16:45
CRTP question
Hi all, can somebody explain me why this piece of code doesn't compile? In particular, why the compiler (on Base<Derived> class) can see _fun, and why it can't see _DType? template <typename D> struct Base { typedef typename D::_DType DType; void fun() { static_cast<D*>(this)->_fun(); } }; stru... 20 Dec 2006 12:20
Why no std::back_insert_iterator::value_type?
The following prints "void", which seems to be what the standard intends. I expected to see something like "int". // Deleted headers. using namespace std; int main() { typedef vector<int> IntVec; typedef back_insert_iterator<IntVec> IntVecBackInserter; IntVec v; IntVecBackInserter iter = back_inse... 25 Nov 2006 06:47
The D Programming Language
Hello folks, I am not sure if this was brought up before, but this language is quite interesting when compared to C++ (and others such as C, C#, Java): The comparison: -- [ See 27 Dec 2006 16:00
how can operator new overrun memory?!
I am running bounds checker on my dll and it keeps telling me that a new operator I am executing is "Overrun Detected During Execution: In block 0x0A696010 (720) allocated by global_operator_new." How on earth does new overwrite memory? I don't ever supply the new operator with memory to step on! Here is the ... 19 Nov 2006 18:28
Reference to void
{ 8.3.2/1 prohibits declarations of references to void. -mod } Hello Is the following code valid? int i = 5; void* pv = &i; void& rv = *pv; // Error here on VC 2005 If not, why isn't it valid? Best regards -- [ See for info about ] [ comp.... 15 Nov 2006 11:59
error: invalid use of nonstatic data member
Hi there I have a problem with a program code. As the code is huge and is copyrighted I just simulated the error with some useless code. Here is the full report now: gcc --version: gcc (GCC) 3.4.2 uname -rmo: 2.6.5-7.201-smp x86_64 GNU/Linux compile command: gcc -c -I/users/dstanche/problem test1.cpp Error Me... 24 Oct 2006 23:16
First  |  Prev |  Next  |  Last
Pages: 49 50 51 52 53 54 55 56 57 58 59 60 61