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



Comments:

<0> later
<1> uX: Are you serious that you need sizes in the order of a few bytes?
<1> cause malloc library overheads are at LEAST two pointers imho.
<1> And if a pointer is 4 bytes - then that means you might as well allocate 8 bytes always - or you should use your own memory pool.
<1> **** I have some template function that isn't being generated :/ Why?
<1> ../../cppgraph/src/generate_project_graph.cc:20: undefined reference to `void Graph::generate_graph<ProjectCallerFilter, ProjectCalleeFilter>(ProjectCallerFilter, ProjectCalleeFilter)'
<2> Usually because the definition wasn't visible at the point of instantiation.
<1> heh, thanks
<1> I turned it into a template, but forgot to move it to the header :*)
<3> i am teh pwnage bitches
<4> Run: if you had a nice compiler compaq / HP C++ you wouldn't have to ;)
<1> mathieu_: You saying that HP's compiler isn't conforming to the standard?
<4> the standard has 'export' for templates, hasn't it?
<4> which isn't implemented by most compilers
<1> I didn't know that. How does that export keyword work?



<4> you put it somewhere in front of the template and you can leave it in th esource file
<4> something like that
<4> but with Compaq/HP C++ you don't have to do that
<1> It's impossible though.
<4> all templates can be instantied automatically
<4> well, it uses dirty tricks
<1> Not when the definition isn't visible at the point of instantiation.
<4> if a template is declared in a header
<4> and the definition is needed but not found
<4> it will include the matching source file
<1> How will the compiler remember it needs it over compilation units?
<4> so you really need to avoid mixing template & non-template code, otherwize you'll get multiple definitions
<1> say, foo.cc implements the template.
<1> And bar.cc instantiates a Foo<MyCl***>
<4> it keeps a repository of template instantiation
<4> s
<1> Then what happens if you first compile foo.cc and then, in a separate commandline, bar.cc -- and vica versa?
<4> well,it will only work if the template was declared in foo.{h,hh,hpp,hxx}
<1> yes it was
<4> it will implicitly _include_ the cc file
<4> and store the resulting binary data in a dedicated directory
<4> (to avoid duplication)
<4> so it's like if bar.cc contained the line #include "foo.cc"
<4> when you make a list of dependencies, those dependencies will show up too
<1> I think it's a very strange linkage between compilation units.
<4> so if you modify foo.cc, bar.cc will get recompiled
<1> I never heard of it before (it isn't mentioned in the standard)
<4> it's not very claen
<4> but it keeps implementation in source files
<1> It should be possible to compile foo.cc on my (isolated) PC and bar.cc on another PC - and then ftp them to china and link them there imho.
<1> And that, can never work.
<4> indeed
<1> s/my/one/
<4> however i like it how compaq/hp does it
<4> eventhough it has it's limitations
<1> My point is, it isn't C++ anymore.
<4> hm true
<1> It's stupid to add "features" like that, causing your clients to write non-portable code as a result.
<4> that's not a problem in my case. the code i write will never be compiled by another compiler
<4> as HP is my employer ;)
<5> it's the way to keep the clients
<1> Unless you're called microsoft, in which case you do it because you have already 90% of the market and you try to kill the other 10%
<1> exception: I see
<4> heh
<1> I don't use products of companies that rape standards.
<4> all the code for the project i work on is in pre-ansi mode anyway
<4> strstream instead of stringstream etc..
<5> there is nothing wrong with non-standard extentions - when they are properly documented
<5> but most of bad c++ book begin with the "void main" sample
<1> It all depends on the reason the extensions were added I guess.
<6> Hello all
<6> I have a question
<6> is C++ the best language ?
<4> VaraaW|aY: yes!
<6> and was it invented?
<5> VaraaW|aY : there is no best language.
<1> I have a question too:
<5> no, it grew on a tree.
<1> Are you a troll or just stupid?
<4> VaraaW|aY: no, not invented. it was found under a rock



<7> VaraaW|aY: nah it was given us by the Lord
<5> mathieu_ : was the rock on a tree ?
<4> exception: might have. i don't know the details
<5> so that's what happened : the Lord placed a rock on a tree, and c++ grew beneath it
<6> lol @ Run
<1> I thought C++ was the result of the space project... whats the name, where they use distributed pc's to decode alien messages.
<4> seti@home
<1> yeah
<1> At first they thought it was the DNA of God, but then someone turned the paper over and it turned out to be a programming language.
<5> hmmm... it gets more difficult to create a joint theory
<4> exception: that's just your lack of imagination
<5> unless it was this paper under the rock
<0> off to the slopes for a little afternoon turns
<8> C++ on a piece of paper?
<8> whole C++?
<5> Kalasanova : of course, c++ is a written language
<5> have you ever heared anyone speak it ?
<1> Chicken and Egg a hard problem? HA! Try the Rock, C++ and Tree problem! And then we didn't yet ask if God created those three or that ...
<4> exception: i only speak the HP variant
<8> well i could try
<9> Hi I'm trying to open a text file and add some text somewhere in it WITHOUT overwriting. I want to use fstream (not ofstream). somebody done it before ?
<1> No no no, it's forbidden to make cartoons of C++
<8> yes mr. Run master
<4> |Rocker|: you want to append or to insert?
<1> Ok, enough troll fun
<9> I want to edit. that means I want to append in the middle of the file or delete
<4> |Rocker|: appending is _by definition_ at the end
<4> |Rocker|: you mean insert instead of append?
<9> I managed only to append at the end of the file, or to overwrite characters somewhere in it...
<5> |Rocker| : you can't insert into the same file, you'll have to overwrite parts of it or create a new one
<4> indeed, you can't "move" contents of a file
<9> hhmmmm, thats why I fail to do it !
<4> you have to rewrite the whole from the first bit that changes
<4> on
<5> if the file is small - load all of it, edit in memory, and write down
<6> oh one thing whats the difference between C++.NET and C++ ?
<4> that's why database are so nice. you don't need to bother about those things
<6> C++.NET somehow isn't that low-level
<5> VaraaW|aY : different trees
<4> exception: but same rock?
<6> C++ seems to be more lowel
<6> Hello exception, mathieu_
<5> VaraaW|aY : there is no such language. you either mean visual c++.net, an IDE, or c++/cli, a language
<6> IDE ?
<5> integrated development envoronment, a program that allows you to edit, compile and run your programs
<4> exception: hm.. so vi is a IDE? :P
<5> mathieu_ : does it allow you to compile ?
<4> sure
<4> :make
<4> calls make, which reads the Makefile, which will eventually invoke the compiler
<5> if it allows you to debug as well, I'd define it a primitive IDE
<6> in C++.NET Visual Studio 2005 I did an MFC that read another DLL and didn't work .. while with normal C++ it did
<4> exception: not debugging. that's why i made that remark, because you omitted debugging
<4> (anyway, i use vi(m) for all my coding)
<5> mathieu_ : I ***umed it would be too complex for VaraaW|aY :)
<5> good luck
<5> why not any free ide ?
<4> because i like the vim commands very much
<5> alias vim <anything else>
<4> eclipse had a free vi plugin
<4> but it's no longer free
<5> eclipse has a c++ plugin - I can't say it's great, but anything is better than vi
<9> ok lets say I want to delete something from the file. How do I make it smaller ?
<4> exception: you're clearly not used to vi commands
<5> |Rocker| : you'll have to copy chunks of the last half over the part of want to delete
<4> i use one editor for everything, so i know it very well
<5> I had to use an old version of vi for some time, one where you must press i before writing anything
<4> exception: all versions of vi have that :)
<4> that's part of the strength
<5> mathieu_ : in the newer ones they somehow go into insert mode automatically
<4> exception: no!
<10> i have an arm-specific question, what channel could i refer to?
<4> exception: in 'easy gvim' for windows you might have that


Name:

Comments:

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






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

#php
#linux
#linux
#AllNiteCafe
#AllNiteCafe
microsoft foundation classess
#windows
jpeglib fedora 6
Palawan.phil
#c++



Home  |  disclaimer  |  contact  |  submit quotes