@# 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



Comments:

<0> would help if i actually cared about this project in the very least
<1> Yah
<0> instead, i'm a bit hostile about being dropped into a horrible, sinking ship of a project and asked to save it, while the developers that got us in this state *still* work for the company
<1> Nice
<0> let alone still work on the *project*
<1> What's the project, anyway
<0> that's also the reason i'm not really the least bit interested. it's a custom sharepoint implementation (which isn't that bad in itself, as it's just ASP.NET with a SQL Server backend), but the design of this thing is horrendous
<1> Nice
<0> good sign a developer doesn't understand exception handling when the only throw found in the code is inside a catch, and there are catches for pretty much all code blocks
<1> A throw in a catch
<1> I think that's how volleyball got started
<2> how do i lcase a char?
<0> std::tolower
<2> hdr?
<0> google.h
<1> Haha



<2> grr :(
<3> logicerror: I gave you calc ref just a second ago
<2> thanks :)
<3> and it's <locale>, btw
<3> :P
<2> ascii code of a character = int(c)?
<3> charint = If you want to get an integer from a single character you can do int i = mychar - '0'; This is because a char is really an integer and the digits 1-9 are defined to follow, in order, from 0. On that note, if you want to get the ascii value of a char, just cast it (static_cast<int>(mychar)) or ***ign it to an int. A char _is_ its ascii value.
<4> logicerror do you really think it's our job to teach fundamental C++ here?
<5> hm
<2> no :)
<5> I thought you were a bot Knifht
<5> Knight even
<4> then why are you asking such fundamental questions
<5> or Kniht
<3> Kniht even
<3> bot = Hey, who are you calling a bot?!
<5> you
<5> heh
<5> bot
<3> *shrug* I am, with advanced irc ai
<0> calc kniht
<3> kniht = Kinetic Networked Individual Hardwired for Troublemaking
<0> indeed
<5> ah
<5> calc bot
<6> see, on one hand i wanna go eat a sandwich...
<3> bot = Hey, who are you calling a bot?!
<0> calc vawjr
<3> Nothing found for 'vawjr'.
<0> indeed
<3> markov chains do wonders
<6> but on the other hand, i don't wanna go make a sandwich.
<6> such a dilemma.
<5> I don't want to go to work either
<3> then get a better job
<6> or retire.
<5> I'm stuck for a couple more years
<5> anyways have to go
<5> bai
<2> how can i lowercase a whole std::string ?
<7> std::transform( str.begin(), str.end(), std::tolower );
<4> rdragon you forgot str.begin() as the 3rd arg
<3> tolower string = std::string tolower (const std::string &src) { std::string dst(src); std::transform(dst.begin(), dst.end(), dst.begin(), safe_ctype<std::tolower>); return dst; } // make sure to include <string>, <algorithm>, <cctype>, and see also `calc unsigned ctype`
<3> unsigned ctype = <cctype> functions accept only unsigned char values or EOF, but "char" is often signed. When p***ing "char", use safe_ctype<std::tolower>(c) instead of std::tolower(c), where safe_ctype is defined as thus: template <int (&F) (int)> int safe_ctype (unsigned char c) { return F(c); }
<7> oops
<0> calc rdragon
<2> thank you :)
<3> Nothing found for 'rdragon'.
<0> yeah that's right!
<7> hmm
<4> peterhu any thoughts on why this: const int getint(){return 3;}
<3> Nothing found for 'peterhu'.
<4> would cause a warning in vc8 ?
<7> what kind of warning?
<8> calc MAKAPOH
<7> const by value?
<3> Nothing found for 'MAKAPOH'.
<7> that seems halfway pointless
<8> bad :(
<4> c:\documents and settings\vawjr\my documents\visual studio\projects\justtestingstuff\boostfilesystempath\boostfilesystempath.cpp(6) : warning C4180: qualifier applied to function type has no meaning; ignored



<3> entirely pointless
<7> i think it's saying its ignoring the 'const'
<4> if you lookup the error it says somethign about a typedef'd function
<4> http://msdn2.microsoft.com/en-us/library/c8105dy3.aspx
<3> vawjr: interesting bug
<4> yeah, a variation on that line is used in boost::filesystem::path
<4> so I'm getting 5 warnings everytim I #include "boost/filesystem/path.hpp"
<3> something in that header is returning a const object? why?
<4> I have no idea, but the point is the compiler shouldn't be bitching either
<9> exit
<4> well, not with that warning, anyhow
<0> vic, int's are inherently const
<0> (returned ints)
<0> (let's see if i can un**** that statement)
<4> ok, the actual statement in the header file is: const string_type file_string() const;
<0> applying a const qualifier to a copy by value return is pretty meaningless
<7> calc peterhu
<3> Nothing found for 'peterhu'.
<4> peter yes, it's fairly meaningless
<7> and string_type is a typedef, isn't it?
<4> rdragon it won't matter, will it?
<0> that line doesn't make it seem meaningless though
<7> well no
<4> rdragon and yes it is
<7> is there some other warning message that you had in mind that should be appearing instead?
<4> I think there should be no warning at all
<7> ah
<0> yes, it does seem that the intent of C4180 has nothing to do with the line of code you've pasted
<0> what's string_type's typedef?
<7> maybe the description is just incomplete
<4> for example it would make illegal something like widget.file_string().somenonconstfunc();
<0> guess i could just open the header heh
<4> typedef String string_type;
<0> hmm, haven't emerged boost since i've reinstalled
<0> in progress
<4> inside template<cl*** String ......>cl*** ....{
<3> vawjr: I can only see that being important if the object isn't copyable
<4> and I changed the line to const String..... and still get the warning
<7> why not get rid of the const... ?
<7> the warning is saying it's disregarding the const there anywhere, I think
<4> rdragon it's not my header file
<4> but the warning refers to typedef'd functions and that's NOT what any of the lines I've showed is
<0> looks like other parts of boost have run into this
<0> looks like a compiler bug for sure
<7> it just seems to me that the warning message is incomplete or misleading, but that a warning was intended either way
<0> judging by the text, the intent was limited to function types defined by typedef, not all
<7> hmm
<2> damn i need to count how many times a symbol is found in a text file :(
<7> const std::string x(){ return "hey"; } doesn't trigger the warning
<2> i don't get it :(
<0> vic, did you actually get that from the const int foo() { return 3; } line you originally pasted, or were you just typing out something you thought would match?
<0> i'm too lazy to fire 2005 up =)
<7> const int x() { return 12; } //does trigger it
<0> heh
<4> peterhu I put it in a test .cpp file, and pasted the error
<0> then that makes less sense indeed
<0> text applies it to function types defined by typedef, triggers on other uses of the qualifier and, judging from the boost headers, any typedef
<0> definitely seems like a compiler bug
<7> yeah, now i agree
<4> ok, though I am puzzled why beman wants to make those things const value
<0> boost-users?
<0> good god nancy grace has the biggest head of anyone on tv
<4> who is nancy grace?
<7> http://www.xbitlabs.com/news/video/display/20060220100915.html
<0> a former DA who somehow got a show on CNN:HN
<0> she's quite possibly the dumbest lawyer i've seen
<0> well, that's not true
<0> jack johnson takes that title
<0> jack thompson that is
<0> (damn you futurama!)
<0> what parent buys breast implants for their kids
<0> jesus
<0> it should be legal to beat the stupid out of kids
<0> (for wanting such things in the first place)


Name:

Comments:

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






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

phemie999 yahoo.com password
error: no match for call to ‘(const __gnu_cxx
#MissKitten
#linux
Goofootz
#windows
uimeste-ma cu o afacere
#chatzone
cock susker
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes