| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9
Comments:
<0> Tamama: so what? <1> javaq_]: so it makes your question kinda silly <1> mathieu: i have no experience with boost <2> it's unrelated to boost actually <2> well, it seems to me it's unrelated <2> if (***ignment, comparison) { statement; } <1> rec->get() ? <1> ah <2> get() returns the raw pointer <1> you have a declaration <1> int a,b,r; <2> yes <2> illegal in an if ? <0> Tamama: which of the two is powerful C++ of Java?
<0> or* <1> its probably read as: if <CacheRecordP rec; CacheRecordP rec.get() > <1> (excuse me for the lousy pseudo code) <2> oh! <2> indeed <1> javaq_: ask in #java <2> Tamama: thank you <2> so it was read as one big declaration <1> mathieu: You're welcome <0> Tamama: are you a n00b? <1> javaq_: are you a troll? <1> mathieu: I ran into that once when using a for loop.. only once :) <2> who make such stupid constructs anyway ;) <2> makeS <1> we do ^-^ <3> ailos, stl question <3> I want to loop through a vector and erase elements that match a set of criteria <0> ibiwan: clear() <3> won't that clear the whole vector? <3> coulda sworn... <3> yeah, I don't want to clear the whole thing. <3> I was using for(it=v.begin();it!=v.end();it++){if(criteria(*it)) v.erase(it);} <3> but this is segfaulting... I thought using iterators properly allowed me to make that kind of change safely <1> 'it' becomes invalid after deletion <3> so do I it=v.erase(it); ? <1> so it++ afterwards (specified in the for loop) is invalid <3> no, 'cause then I'll skip whatever was after the deleted element <3> hm, ugly workaround... <1> dont it++ in the for loop <1> problem solved <3> for(it=v.begin();it!=v.end();){if(blah) it=v.erase(it); else it++;} <3> yeah <3> is that the Right Way to do it? <3> I don't care for this program in particular, but in general I'm trying to teach myself to do more idiomatic C++ <1> if it works, it is right <3> *eyebrows hit ceiling* <0> is Dev-C++ compatible for fedora core 4? <1> c-bot <1> !paste <1> lol <1> noidea is *splut* <1> anyone has another? <1> http://www.nomorepasting.com/ <1> there we go <4> pastebin.com? <1> hm <1> interesting <5> what's that <1> i created an explicit constructor taking void * <1> yet, it still converts int * to void * <1> (or at least, doesnt error) <5> is it pasted? <5> I'm leaving in less than 6 mins <1> heh no <1> i can try and make a thingy in 2 <1> http://pastebin.com/554144 <1> abstract <1> :) <1> no error, no warning <5> bah I have to go
<1> lates :) <1> anyone else interested in explaining that? :) <5> it looks very okay to me <1> except that it doesnt give an error on the explicit breakage <5> I don't think it's supposed to with void* <5> it might if you have a different ctor that takes int* <1> there isnt <5> anyway, REALLY gotta go :) <1> i compiled that abstract <1> the abstract doesnt err either <1> ok EwIck, see you <6> happy VD, heh <7> veneral disease day? <6> ;) <1> hm <1> can someone explain to me why the following paste is not allowed? <1> http://pastebin.com/554233 <6> because it's not <1> http://pastebin.com/554235 <- that is <1> why the difference? <6> the difference is that you can overload functions <6> not cl***es <1> meh <6> well, if you're using the first cl*** instead of the second, you can name them differently and not lose anything <1> doesnt the template already make it different? <1> other signature that is <1> well yes i can rename them of course :) <6> you can specialize it to differentiate, if that helps <1> hm? <6> template< typename T, typename T2> struct A{ int x; }; template< int, int> struct A{ float qwerty; }; <6> er, <6> template<> A<int,int>{ float qwerty; }; <6> struct ^ <6> guess i'm not really awake yet, heh <1> well the thing is its supposed to handle type conversion.. so renaming them to 1,2,3 etc for 1,2 or 3 template args is easier in the end <6> ah <6> well yeah, look at boost <6> 'morning vawjr <8> mornin' rdragon <8> any more word on that job you're looking at? <6> nope haven't heard a thing... tempted to make another contact if I don't hear anything by the afternoon <6> got another inquiry yesterday, something regarding biometric security application & library development, in Tampa <9> I think I saw that one. <6> www.ceelox.com <9> I was telling Mrs. Solamente about you considering a move to Seattle. <6> hehe <9> First she said, "Oh, if he's young, he should go." <6> yeah <9> Then she said, "But if he's not gay, remind him it's tough to get a date out there." <6> doh <9> Actually, I think if you're reasonably good-looking, the women will be throwing themselves at you because all the other attractive men are gay. <6> hmmm yeah, true <6> hehe <8> half of the women? or half of the gay guys <10> you worked half of them? <9> "Dudes, when are we going to hire a hot chick receptionist?" <9> Then the light went on... <9> When I was out there. <10> a lightbulb? <10> ouch <9> Okay, now that I've dug a pit for myself... off to the office with me. <10> :) <6> lol <6> thanks for the tip <10> well have "fun" at the office Solamente <6> good looking, not gay: http://www.mike-n.com/stuff/miken.png <6> :) <8> a picture of you playing pocket pool while rubbing up against a female isn't all that convincing <6> haha <8> well, a presumed female
Return to
#c++ or Go to some related
logs:
#AllNiteCafe #linux #linux #linux mouse systems sk-6000 #asm Ciphertext does not begin with a valid header for 'salt #javascript #windows #c++
|
|