@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14



Comments:

<0> looking......but file side is fine, it's getting that file value into the registry that is the issue
<1> use that as the registry key value
<1> i was just telling you how I found it
<1> although... that's the 'default' location
<1> there must be some other property to tell the actual location
<1> ARPINSTALLLOCATION, maybe
<0> looking at the stuff now
<2> guys if i make a template function that has an if branching thing in it and i put the conditional for it as a parameter and i write it as a constant directly then will the compiler make a specialized version of that function with the if removed through optimization
<1> what's an "if branching thing"
<2> an if statement
<1> you have an if statement in the function that compares something?
<2> no
<1> how about, paste the code
<3> template <int n> void f() { if (n > 5) { bleh ; } } ?
<3> like that?
<1> yeah, that will probably be optimized away



<1> not like that's going to kill your app performance anyway
<1> but yes
<3> rdragon: i don't know if that is what he means though
<1> oh, thought you were him
<3> no, he is
<3> :)
<2> it decides whether to do some calculations or not in the function depending on if you write true or false in the function paramaters. i'm thinking since you write true or false in the code then the compiler can optimize it away coz it knows whether it needs to do that section of code within the if statement at compile time
<1> is the true/false a template argument?
<1> paste the code.
<2> it's a parameter
<2> i haven't written it yet
<1> a template parameter, or just a parameter to the function?
<3> ViPr: make an example
<4> rdragon: if the compiler is really great, and can see the function, it could inline the specific version without templating as well...
<3> Drahflow: 'some calculations' probably won't be inlined
<1> Drahflow I don't know if it's a template parameter or not, but it might, if it can see the function definition
<1> if it can't see the definition at compile time, then I doubt it will be inlined
<4> rdragon: yes, then i would not be inlined...
<4> mathieu_: good point
<1> template< bool doit > void f(){ if( doit ){ ... } else { ... } }
<2> if i write true false or some number directly in the code when i call the function then the compiler can optimize it away right?
<1> that would almost certainly be optimized away
<1> ViPr you have to write code so we can see what the heck you're talking about
<5> ...
<2> what are the things called that you write in parentheses after the function name? they are data that you send to the function
<5> homework?
<1> in a function call, they're called arguments
<1> in the function declaration, they're called parameters
<1> no TechRaven that's not his whole quesiton
<1> he's got some previous junk he was talking about
<1> no problem
<1> im invading your state next week
<1> that's all the satisfaction I need
<5> pa? or washington?
<1> WA
<2> ok if i write constants for the arguments and the function is a template then the compiler can create a version of that function that does not need those arguments because it builds them into the function. it tailors the function to be able to use only that constant data. right?
<1> ViPr
<1> please write code
<1> and we can tell you in a second
<6> people just don't get exception handling, it's amazing
<6> catch (Exception ex) { return true; }
<6> beautiful
<1> ugh
<1> if the value is a template parameter, then yes; but based on your earlier comments I'm not really sure what you mean
<1> but you don't put template parameters in parenthesis, so...
<2> well i do and it works
<1> okay, then you must be right
<1> what do you think of when someone says parenthesis? because I think of ( and )
<1> and if you would show the damn code already, this could be cleared up really quickly
<5> less fun tho
<4> template <(bool) (b)> foo... does that work?
<1> heh
<5> doubt it
<1> nope, it doesn't
<2> damn i have to go eat now
<1> how convenient
<1> thanks for wasting our time
<4> why not?
<1> Drahflow because the compiler says "wtf?"



<5> there is no reason to have parens inside of template args
<5> templates are overly complicated for compilers the way it is... can't imagine what it'd be like if oyu had parens
<1> template< bool (b) > void foo(){} //that works, though
<5> really?
<1> in vc8, anyway
<4> found out exactly that...
<4> g++ says the same...
<4> wtf for (bool)
<4> but ok for (b)
<1> template< bool (b), bool c > void foo(){} //this does not work
<7> you **** Tech
<5> well whatever, if you code like that you should be shot :)
<7> you clearly don't know anything about c++
<5> I do
<5> I know
<5> :(
<7> lunch time.
<1> found my new apartment http://www.equityapartments.com/market/largeFloorplanFramer.aspx?PropertyKey=wa_gatesofredmond&Floorplan=b_Secretariat1049.gif&PropID=381&FloorplanID=72030
<8> Quite expensive. Do you get rent support?
<1> rent support?
<1> yeah, it's a little pricey
<8> Like the govt. pays part of the rent for you
<1> no
<8> But you are in europe right?
<1> they would only do that if i made... very little money
<1> no
<1> that apartment is in redmond, wa ;)
<8> ah
<1> that's about average for the area
<8> Yeah didn't look at the addr
<1> plus, I can walk to work
<8> Besides its called (Bill) Gates of Redmond
<1> hehe
<1> but I like the idea of the high ceilings because it's 2 floors
<1> makes it feel a lot bigger
<9> Damn, looks like guys from Boost community don't care 'bout backward compatibility
<1> heker they don't (and shouldn't) care about 'ancient' compatibility
<1> how far backward are you?
<1> hopefully you don't say VC6
<10> 2 floors but small
<9> heh
<1> 1000sqft is comfortable for me
<1> 1000 is what I'm living in now
<9> i have installed boost version 1.33.
<8> Mine is also a 2 floor appt. but I don't like it (now Ashe will say something Ratish)
<1> but it's tough to find anything bigger at that price
<1> heker - what compiler?
<9> I don't want to rewrite and recompile my projects each time boost changed
<8> Sheesh 1000 sq ft > 100 m
<5> rd: you know any decent XML parsers? (cross platform)
<1> TechRaven - tinyxml ?
<1> it's pretty bare bones
<1> there's also Xerces
<1> well recompiling isn't really something you can get away from, heker
<10> tinyxml is ugly
<1> and if there's a breaking change, there's probably a decent reason for it
<1> so, upgrade your code
<1> or just stay with an old broken version
<9> let me show you the code, it's pretty simple
<1> 100 square meters = 1076.39104 square feet
<10> Btw I dunno if I mentionned it but I bought a house 2 weeks ago
<9> URL: http://www.nomorepasting.com/paste.php?pasteID=60381
<1> heker: what's the big deal?
<10> Actually rdragon, why don't you buy instead of rent?
<1> MrAshe I don't know
<1> not sure how long I'll be living there
<9> well for now not much butj the bigger the code, its gonna get hectioc
<1> probably around 2 years though, or so
<1> heker it looks like they made it much more flexible
<6> why is it everyone writes software so poorly?
<10> Because everyone is so ****ing stupid
<9> yah looks like it
<9> except for the backward compatibility
<10> rdragon: even if you stay 2 years it's better than throwing 24x $1000


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

Metlek hacker
#mirc
Sms Bomber Deluxe v15
#linuxhelp
coments cards reports+math
applet setExtendedState maximized
LOLOLLLLL
#AllNiteCafe
#javascript
#london



Home  |  disclaimer  |  contact  |  submit quotes