For SumTreeClass::BuildTree(vector<Node>, tNode *), I'd change
else if(tempPath[0] == 'L') { //... to
else { helperFunction(tempPath[0]); }
I wonder... Did you just code most of this then...
Type: Posts; User: DynV
For SumTreeClass::BuildTree(vector<Node>, tNode *), I'd change
else if(tempPath[0] == 'L') { //... to
else { helperFunction(tempPath[0]); }
I wonder... Did you just code most of this then...
It's not just you! http://www2.research.att.com looks down from here. Check another site?
I assume it was similar to Brace Initialization syntax - C++ Forum but I,ll have to just keep that in...
Hmm! It was a joke. I hope it wasn't appropriate.
nice link
:D
Searching for content on this forum before creating a thread I stumbled on const function which post #2-3 caught my eye.
I then made a few searches on the separate terms but for most interesting...
You're right and I usually detect it but that darn const-on-the-left-at-beggining-of-statements exception confused me! >:(
const T& operator*() const;
I always put const on the right.
I'm...
I used advanced, as the search criteria show on top of the image. I also use Search Titles Only, either one of us had luck going for or against, I'm missing something unusual (I'm not a stranger to...
From what I gather, functions return temporaries which don't need to be const (I assume making it const would use more processing) except for cases where returns are pointers or references.
I have...
That's what I understood from the concept right before creating this thread but the more examples, the merrier. :D
I was about to forget: I did search on the topic before creating a new thread but...
I will assume this is what I was looking for ; that it's extremely unlikely that what my OP suggested (block of const & non-const operator[] be different) happen. So I might was well put that in my...
Yeah I'm just like that and I'm still focused on it, just like my OP mentioned:
I know what you're saying about const correctness, that the const version should be the most important version and...
Sorry but I don't get this. :|
Would someone please just make me an example (or give URLs which someone with no prior knowledge of const & non-const difference would understand), or a few if...
O_o
Being "const correct" isn't a superficial difference.[/QUOTE]
This was the important part perhaps the compiled versions are (much) different but certainly not the blocks as far as what I...
This is exactly my point. The difference between the blocks of the 2 operator[] (const & non-const) are not-so-important.
Are there cases where the difference is important? That the block content...
I was reading a tutorial which have a header including operator[], of course an overload of the latter, having a version const and non-const, respectively:
T const & operator[]...
I appreciate your long post dwks. I wanted to reply yesterday, not long after the others replied but by then I was worn out, funny what a few minutes can do. Your nickname seem familiar ; do you hand...
Hello! I know it's the wrong forum but since I don't have 10 post yet, I can't PM.
I made a mistake which make me look really stupid if one pay attention to it from Making a wrapper templated...
I don't understand what you just wrote, I'm not so good (read not at all) with wrapper and templates. Again my project isn't so complicated, this is a side-project and I see it took me far beyound...
Yes! I got it working. Looking at your code, I went for the signatures right away and found out the problem. My version:
#include <iostream>
#include <string>
template <typename T> class foo {...
Greetings,
I'm kind of new to C++ and am having difficulty understanding subject I haven't explored thoroughly. Some kind souls helped me for a side-project but it seems I've reached their...