Comment Re:the best 3d web thingy ever (Score 0) 237
>sig = new std::disclaimer();
I'm pretty sure you need a typedef to hold the disclaimer container. In fact, a typedef to hold the typedef would make it more readable. Using an autopointer would be discouraged - they aren't magic fairy dust, you know.
Make sure it is const & too, otherwise it will copy on assign. Of course, it won't actually TELL you that it did a copy, until you try to do something to the copy and discover that your value isn't what you expect in some module on the other side of your codepool.
In that case, make it const and reference counted and mutable... A mutable disclaimer does break other rules, however. For that, you'll need copy-on-write (cow). A mutable reference counted std::disclaimer will make anyone have a cow.
On the other hand, if it actually does complain about your non-const non-mutable non-reference-counted std::disclaimer, you will have absolutely no idea what the complaint is, because the error message will be absolutely incomprehendable, even when printed and delivered by forklift.
Then, there is "Please wait: linking 40mb binary" (you don't rely on the stl being stl, do you??)
<obligatory 3d web page comment> gimme a 3d screen, I'll use a 3d browser. For now I'd be happy for a wraparound taskbar.<ob>
I'm sure you have an invalid iterator there somewhere.
I'm pretty sure you need a typedef to hold the disclaimer container. In fact, a typedef to hold the typedef would make it more readable. Using an autopointer would be discouraged - they aren't magic fairy dust, you know.
Make sure it is const & too, otherwise it will copy on assign. Of course, it won't actually TELL you that it did a copy, until you try to do something to the copy and discover that your value isn't what you expect in some module on the other side of your codepool.
In that case, make it const and reference counted and mutable... A mutable disclaimer does break other rules, however. For that, you'll need copy-on-write (cow). A mutable reference counted std::disclaimer will make anyone have a cow.
On the other hand, if it actually does complain about your non-const non-mutable non-reference-counted std::disclaimer, you will have absolutely no idea what the complaint is, because the error message will be absolutely incomprehendable, even when printed and delivered by forklift.
Then, there is "Please wait: linking 40mb binary" (you don't rely on the stl being stl, do you??)
<obligatory 3d web page comment> gimme a 3d screen, I'll use a 3d browser. For now I'd be happy for a wraparound taskbar.<ob>
I'm sure you have an invalid iterator there somewhere.