« first day (399 days earlier)      last day (4546 days later) » 

sbi
12:00 AM
@KerrekSB I can write you a C++ compiler in two hours, and it will compile C++ code faster than any other C++ compiler. In the same way that IE6 was a browser.
 
@JohannesSchaublitb Hmmmmmmmmm
(Seriously though: We had some very simple, just long table (some business interface), about 3MB HTML. Opera and Firefox flat out died. IE6 spend a second or two computing and then bam displayed the whole thing in one go. You could scroll anywhere, no problem.)
 
oh
i guess chrome could take it
 
This only became clear to me when I talked to some people who do different things... not everyone has flashy poster-type websites. Some people want to view massive amounts of data. I think Opera is still not very good at it.
Chrome would be an interesting candidate!
(Or Iron, of course.)
Also consider searching in 3MB of text-only HTML
Wait, why were we worrying with web woes and SGML? Oh... the FPAs: does anyone have any good SO questions that can always be pasted as "exact duplicate" candidates?
 
12:15 AM
Bye!
 
wow gcc-melt.org seems to be nice
 
I laughed out loud at the Java FPA.
 
@Maxpm Allegedly based on a true story...
 
12:48 AM
0
Q: May std::vector make use of small buffer optimization?

Johannes Schaub - litbI was wondering with my colleague today whether std::vector can be implemented to make use of small buffer optimization. By looking into the C++11 draft, I read at 23.3.1p8 The expression a.swap(b), for containers a and b of a standard container type other than array, shall exchange the valu...

 
 
1 hour later…
2:03 AM
@JohannesSchaublitb Does "small buffer optimization" mean that a small buffer is allocated along with the object on the stack? (For example as an array member variable?)
 
2:33 AM
@CatPlusPlus Did you read the discussion between Chao and me? There are things you can do with the data, and you might even just want to show an error message.
 
Windows 7 decided to reboot in order to install its updates ...while I was gaming!!!
Such indecency.
 
Second, there is no finally in C++; third, you have too many try blocks; catch( io_error & ) goes outside everything else that could throw an I/O error since the data being flushed at close isn't special.
And "finally" (no pun intended), it is likely that no action should be taken by the caller anyway. This is functionality that should be in a subclass of std::filebuf, which would implement its own close calling filebuf::close and catching the exception there.
 
 
1 hour later…
4:03 AM
@Potatoswatter Meh. If you can't close a file then you might as well terminate.
 
@StackedCrooked I'm just gonna stop arguing with y'all, but there are applications that really care about whether some data did not reach the output device.
 
@Potatoswatter I think most applications care about that.
 
So what's your point, then? I'm just not arguing any more.
 
I'm not arguing. I'm just too tired to restrain my thoughts from becoming actions.
Or something like that.
Perhaps that's what arguing is.
Dammit.
 
Perhaps. Don't feel bad, you're just like the third person to take a position on this.
 
4:09 AM
I don't know the particular use-case. But I think that not being able to close a file is a strange situation.
Strange enough to make your app go awry. But that's just my opinion.
 
The issue is what happens to data when the ~filebuf calls close calls flush calls *write but the I/O fails. The error is swallowed and a C++ program receives no notification at all. If you want more reliability, you can subclass filebuf. But what that subclass can accomplish is ambiguous.
 
I think that's a weakness of C++. If your destructor needs to do something that can throw, then it must silence the exception.
With an empty catch(...) {} block.
But in practice I haven't yet run into this problem. Fortunately this is usually acceptable behavior.
Unless when it isn't :D
 
C++ does the best thing possible. I think in C++11 you can save the exception for later, in really dire circumstances.
 
4:26 AM
In the C++ and beyond debriefing interview there was a brief discussion about the D programming language. You know D is supposed to be a better C++. But then Andrei mentioned that they had a closer look at many of the design decisions of C++ and they came to the constatation that they were the right decisions. Even if they appeared wrong when looking at them for the first time.
Apparently Bjarne is good at what he does.
 
Yes, remarkably so. But Bjarne has help too, probably better help than Andrei.
There's remarkably little back-and-forth bickering in C++ language development, from what I can see anyway. Maybe because the language is so ugly, everyone is willing to focus on meaningful semantics and not bicycle shed color.
It would be interesting to compare C++03 and C++11 to other huge standardization efforts, like Ada and Fortran and Algol, using some kind of metric incorporating the volume of discussion and its signal-to-noise ratio.
 
C++11 would rank highly.
 
And yet its SNR was very high as well… the main argument was which features to punt to C++1x, and everyone is still friends.
 
4:51 AM
I'm rewatching the C++ and Beyond debriefing and dammit, it's so good!
 
5:25 AM
 
I've given my first vote to @awoodland. Can't decide who to give my next 2 votes. any suggestions?
 
How can I vote for someone? Is there a voting page?
 
vote for @awoodland. I think he's the only C++ guy there.
this guy seems normal too. I'll consider him for my 2nd or 3rd choice:
If only there wasn't the java tag.
I'll give him my 2nd choice anyway.
what is flag weight?
 
5:43 AM
just make sure you don't vote for this guy named "casperOne". I don't like his self-aggrandizement at all.
 
@StackedCrooked I know. He's being way too cocky.
ok I've cast my votes
@awoodland for the win.
 
Interesting phenomenon: when I linked to Wikipedia's article on the SOPA bill, Facebook produced an apparent quote that was really a misleading paraphrase. Containing wording that according to Wikipedia's history search has never been in the page.
The apparent quote:
> SOPA is also known by some as the E-PARASITE (Enforcing and Protecting American Rights Against Sites Intent on Theft and Exploitation) Act.[6] According to co-sponsor Representative Bob Goodlatte [R-VA], chairman of the House Judiciary Committee's Intellectual Property sub-panel, SOPA represents a r...
E.g., the phrase "known by some" is not actually in the Wikipedia article, and has apparently never been there.
 
weird. Something's wrong with facebook lately. I watched EuroNews in the morning and they were telling something about how facebook had been infiltrated, and videos etc. were being posted on the walls of people etc. know anything about that?
 
5:59 AM
no
 
@IntermediateHacker He has a very nice cv imo.
138
Q: Should 'Hi', 'thanks,' taglines, and salutations be removed from posts?

GEOCHETI edit a lot of posts everyday. I often run across posts with 'Hi' and 'Thanks' on the top and the bottom of the post respectively. I also run across things like: --User Should these items be removed during the editing of the post by an editor?

^ Funny read.
 
I noticed that in order for someone to be eligible as moderator, the person is required to have gone on a flagging spree, an editing spree, and to have been conformist, with the relevant badges to prove this. The question "who are these folks putting themselves forth as moderator candidates" has thus been answered.
@StackedCrooked I think jeans should be blue only. Any other color should be banned. Those other colors are distracting to the public.
 
someone edited my question only to add an extra space between "delete_event ?" changing it to "delete_event ?" I wonder why.
according to his CV @awoodland studied the same subjects I plan to study in AS and A2 Maths, Physics , Chemistry and Further Maths... Further Maths is difficult though.
 
 
1 hour later…
7:39 AM
my gawd..i swear this idjit is trolling
-1
A: Why use !! when converting int to bool?

someONeNo reason. Better do like this instead of bool = !!int orbool = int define _boolx(a) [(a == 1) ? 1 : 0] or [(a != 0) ? 1 : 0 or 0 : 1] int A = 349493; bool B = _boolx(A); and for cHao.. yes u can do with ur ugly if (A <= 0) { bool B = true or false else ....} but this ur answer.... if ( a...

 
7:57 AM
0
A: Why use !! when converting int to bool?

Alf P. Steinbach!! is an idiomatic way to convert to bool, and it works to shut up the Visual C++ compiler's sillywarning about alleged inefficiency of such conversion. I see by the other answers and comments that many people are not familiar with this idiom's usefulness in Windows programming. Which means they...

 
8:50 AM
@keithlayne Generics can become quite confusing due to type erasure. Besides that, there probably aren't many "esoteric" language features in Java. Anonymous inner classes, maybe.
 
does gcc already support generics?
 
There is a gcc for Java?
 
no, i mean c++11 support
 
@FredOverflow Yes, namely gcj.
 
user457812
@FredOverflow Isn't that what gcj is? Though I don't know if anyone actually uses it...
 
8:55 AM
@bamboon There are no Generics in C++11.
 
@FredOverflow really? I then must have dreamed that
 
Do you mean Concepts? They were removed from C++0x in July of 2009.
If you mean something else, please clarify.
 
arent generic funstions were you can do stuff like
void fu(Vec1, Vec2, Vec 3 ...)
?
 
What is Vec1?
 
anytype
 
8:59 AM
Are you talking about function templates? They have always been in standard C++.
 
no not templates
wait
 
template<typename T, typename U, typename V>
void fu(T t, U u, V v)
{
}
 
protected Long doInBackground(Vector... params)
 
@bamboon okay, waiting
 
that is from java
where you can have a variable amount of parameters
that is what i mean
 
9:02 AM
All of the same type? Then you want a std::initializer_list<T>.
Each of a different type? Then you want variadic function templates.
 
@IntermediateHacker - I didn't do as well as I hoped on the further maths, but it was useful
 
ah i meant variadic
yeah
mixed that
 
@IntermediateHacker if I did it all again I'd probably swap chemistry and further maths for photography and French
 
Variadic templates in C++ are way more powerful than variadic arguments in Java.
 
but variadic templates are new in c++11, arent they?
 
9:05 AM
yes
 
ok, back to my original question,^^ are they supported by gcc yet?
 
But again, if you want the equivalent of Java's Vector..., then you don't need the power of variadic templates, you just need a std::initializer_list.
g++ supports both std::initializer_list and variadic templates.
 
ok thanks
 
variadic templates since 4.3, initializer lists since 4.4 apparently
 
i am gonna check it out
 
i bet MSVC doesnt
@FredOverflow yeah thats cool, just checked wiki
 
MSVC does support initializer lists if I remember correctly, but definitely not variadic templates.
 
is there something like a conversion from a vector to a initializer_list
 
no, but the other way around
If a function expects a std::vector<T>, you can pass a std::initializer_list<T>.
That's because std::vector<T> has a constructor taking a std::initializer_list<T>.
 
also by reference?
 
9:15 AM
initializer_lists are passed by value, but that implies no copy. They are a bit magical ;)
 
checking your code
how can i change it and try something?
any other way beside clone?
 
What's wrong with just copy/paste and then modify?
0
Q: initializer_list and move semantics

FredOverflowAm I allowed to move elements out of a std::initializer_list<T>? template<typename T> void foo(std::initializer_list<T> list) { for (auto it = list.begin(); it != list.end(); ++it) { bar(std::move(*it)); // kosher? } } Since std::intializer_list<T>...

@bamboon lol I wanted the other answer above that to be directed at you, sorry :)
 
cpx
9:36 AM
22
A: C: create a pointer to two-dimensional array

Johannes Schaub - litbHere you wanna make a pointer to the first element of the array uint8_t (*matrix_ptr)[20] = l_matrix; With typedef, this looks cleaner typedef uint8_t array_of_20_uint8_t[20]; array_of_20_uint8_t *matrix_ptr = l_matrix; Then you can enjoy life again :) matrix_ptr[0][1] = ...; Beware of t...

i don't get the undefined behavior because the arrays are supposed be contiguous.
 
@cpx It is undefined behaviour to use an index that is greater than or equal to the number of elements in an array object.
 
excellent
 
That's what I said.
1984 revisionism FTW.
 
@RMartinhoFernandes you can compute the n+1 pointer. in C++99 you can also dereference it, as long as you immediately apply address operator. not sure how that worked out for c++11
 
9:43 AM
@AlfPSteinbach You mean the n pointer. Indices range from 0 to n-1, and n is the "one beyond the last" index.
 
"Avril.Lavigne.Bonez.Tuor.-.Live.at.Budokan.mp4" 700 MB music video. he he.
 
cpx
@RMartinhoFernandes but the original size of array is static uint8_t l_matrix[10][20];
 
@cpx So? There's an array object of size 10, and type uint8_t[20], and there's a bunch of array objects of size 20 and type uint8_t.
A pointer to the beginning points to one of those.
It doesn't point to an array of size 200.
 
@RMartinhoFernandes Alf P. == Stephen Prata? :) He also claimed there was a C++99.
 
the memory layout (no padding) is guaranteed by the sizeof docs
@FredOverflow i meant c99, thanks
does anyone here use a windows c++ compiler that is neither Visual C++ nor g++?
 
9:47 AM
Does clang work on Windows?
 
@RMartinhoFernandes it better should but i don't have it. i mean a modern compiler, not bcc5
 
@AlfPSteinbach clang is modern.
 
but good point thanks R.
not contended. i mean is anyone here using a modern windows c++ compiler that is neither Visual C++ nor g++?
 
I'm sure ICC works on Windows too.
@AlfPSteinbach Ah, ok.
I use g++.
 
@AlfPSteinbach I used to use Watcom C++, but that was over a decade ago.
 
9:50 AM
well _setmode( fileNo, _O_U8TEXT ) works with visual c++ and g++, but the question is if it works with e.g. intel or cling-clong
i guess i'll have to install clung
 
You forgot about cleng.
 
no love for clong?
 
1 min ago, by Alf P. Steinbach
well _setmode( fileNo, _O_U8TEXT ) works with visual c++ and g++, but the question is if it works with e.g. intel or cling-clong
 
lol
if I had to make a CLI app, I think I'd consider inventing my own console
the Win32 console subsystem blows terribly
 
9:54 AM
Console allows hosting.
Damn, I'll have to drive again.
 
i found out that all the fooling around with UTF-8 facets (writing my own, using the half-documented one in Boost, using the C++11 one) was unnecessary. it was just that i'd forgotten to call a fixup function in the test code. so i thought g++ support more lacking than it was.
 
it's like, i know that when one looks back, then, if one is not yet senile, one sees that one were dumb yesterday and even more so yesterweek and so on, but does it have to be by such a large margin?
 
10:11 AM
yes
 
It seems the fourth edition of TC++PL has been delayed to January of 2013 :(
 
But we will have a new edition of the Josuttis reference book in April of 2012, apparently.
The cover looks really crappy, imho.
Is "C++ Coding Standards" a book worth buying?
 
10:27 AM
I like the cover
 
I like the old one better.
 
@FredOverflow yes, just ignore their advice to use static_cast instead of reinterpret_cast
i don't have the book
but it has a great table of contents
probably the most memorable phrase from that book
 
@AlfPSteinbach When is reinterpret_cast preferable when static_cast suffices?
 
is "don't sweat the small stuff"
@Potatoswatter when you have looked too long at the C++98 standard... was fixed in C++11
 
@Potatoswatter Makes the intent clearer?
 
10:29 AM
@AlfPSteinbach Like "Should I write T* p; or T *p;?"? ;)
 
@Potatoswatter oh sorry i thought you asked the opposite
 
@RMartinhoFernandes When is the intent to discard value semantics, even though they work?
 
@FredOverflow only care about it if it causes problems
 
@Potatoswatter I don't understand.
 
> I need T * p; for my bunghole!
 
10:31 AM
static_cast produces a result with the same value but different type. reinterpret_cast produces something platform-dependent, usually same bit-pattern even if it's nonsense.
 
Obviously, we're talking about a situation where both can do the job, right? It's pointless to talk about one where only one works: use the one that works.
@Potatoswatter Wrong.
 
I'm not being particularly precise, but am I wrong in an interesting, relevant way?
2
5 mins ago, by Alf P. Steinbach
@FredOverflow yes, just ignore their advice to use static_cast instead of reinterpret_cast
 
There's a situation where the effect of reinterpret_cast can be obtained with static_cast.
 
> 8. Don't optimize prematurely 9. Don't pessimize prematurely
 
^ huh???
@RMartinhoFernandes Yes, for example reinterpret_casting one unsigned type to another. That's uninteresting and irrelevant — you should use static_cast because you invariably care about the resulting value in that case.
 
check the reference question
but note that the first book is pre-C++ 98
so it's value would be questionable in a C++11 world
 
> C++ gems is also good. Although a little old but enjoyable.
That's all I could find.
 
cpx
oh ok i get it now I confused this l_matrix[10][20]; being a single object even though its a contiguous block.
 
don't ever use C-style arrays
use a std::\ boost:: array<T. N> instead
 
@Potatoswatter ideally, for casting unsigned to unsigned you should not use any cast, because the result is guaranteed by the standard. i believe using reinterpret_cast directly, won't even compile. however, visual c++ tends to warn about such well defined things, so it may be necessary to use a nowarning cast.
 
10:46 AM
@AlfPSteinbach My question is when reinterpret_cast is preferable when both suffice.
 
@Potatoswatter The example in the book is, I believe, about emulating reinterpret_cast by a silly sequnce of static_casts via void*. And the unstated reason was that C++98 had a defect where you couldn't do void* with reinterpret_cast. It's been fixed.
Oh, my long 700 MB music video finished. What shall I listen to now?
 
@AlfPSteinbach Oh, OK. Yes, one reinterpret_cast is better than a series of other casts.
 
&rarr; REM "Reveal" album
as I see it it's more about communicating true intent
readability
clarity
all those arguments about undefined etc., it's just academic
i think now it could be useful to define template< class T, class U > T nowarning( U v ) { return static_cast<T>( v ); }
 
That communicates intent??
 
Yes, like DWORD const x = nowarn<DWORD>( the_streamsize )
Should ideally be boost implicit_cast in there instead of static_cast though
 
10:54 AM
Because your intent is just to stop the compiler from complaining, and you won't think of it as a cast even if the compiler does?
 
What about other kinds of compiler warnings? Really it should be called nowarning_cast at the least.
 
Or shut_the_fuck_up_I_know_what_I_am_doing.
The compiler warns about what, btw?
 
visual c++ warns about potentially losing information
 
I never think of intent in those terms. Writing static_cast there should be accompanied by a note that the narrowing is OK, not by making that assumption more tacit.
 
10:57 AM
The warning shouldn't be there anyway.
 
Surely it can be turned off. But really, implicit narrowing causes real problems.
 
I can understand it for implicit conversions, but if you wrote static_cast already, it's silly to warn.
 
[d:\dev\test]
> type foo.cpp
#include <assert.h>
#include <iostream>
using namespace std;

int main( int argc, char* argv[] )
{
    bool const b = static_cast< bool >( argc );
}

[d:\dev\test]
> cl foo.cpp
foo.cpp
foo.cpp(7) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
foo.cpp(5) : warning C4100: 'argv' : unreferenced formal parameter
foo.cpp(7) : warning C4189: 'b' : local variable is initialized but not referenced

[d:\dev\test]
> _
or more clean test program:
 
#include <iostream>
using namespace std;

int main( int argc, char* argv[] )
{
    bool const b = static_cast< bool >( argc );
    (void) argv;
    (void) b;
}
then
[d:\dev\test]
> cl foo.cpp
foo.cpp
foo.cpp(6) : warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)

[d:\dev\test]
>
2
A: Why use !! when converting int to bool?

Alf P. Steinbach!! is an idiomatic way to convert to bool, and it works to shut up the Visual C++ compiler's sillywarning about alleged inefficiency of such conversion. I see by the other answers and comments that many people are not familiar with this idiom's usefulness in Windows programming. Which means they...

 
11:04 AM
LOL @ "performance warning". But that's not even correctness-related. Is that on by default? There must be a reason you're getting that. I've never really used MSVC, so forgive my ignorance.
 
@Potatoswatter no C++ compiler I know of is standard-compliant by default. you have to turn off non-standard features, turn on standard-required features (such as exception handling and rtti), and up the warning levels to something sensible.
E.g. with g++you should as a minimum use -pedantic and -Wall
 
@AlfPSteinbach Yes, but you're getting a senseless warning. Is the warning level too high? Even -Wall doesn't really enable all warnings.
 
@Potatoswatter it's /W4 with Visual C++. With Visual C++ -Wall does turn on all warnings. Just a heads-up.
 
Don't know whether to laugh or cry. I'll continue to avoid the platform.
 
@RMartinhoFernandes We have C-style casts for that.
 
11:08 AM
don't ever use C-style casts
they're teh bad
 
@AlfPSteinbach funny, I am not getting the warning with gnu g++.
 
g++ has some silly warnings but i think not this one
GnuWin32: "Done installing. yay. Have fun!"
well
 
I just tried porting my g++ app to MSVC++ , the compiler gave errors on every char* or std::string I had used on windows functions. Had to cast it all to LPCWSTR. It compiled fine on g++
 
@IntermediateHacker don't cast those strings, you'll get garbage results
 
-3
A: Why use !! when converting int to bool?

someONeNo reason. Better do like this instead of bool = !!int orbool = int #define _boolx(a) [(a == 1) ? 1 : 0] or [(a != 0) ? 1 : 0 or 0 : 1] or.... int A = 349493; bool B = _boolx(A);

 
11:23 AM
@IntermediateHacker E.g., here's a typical call without casts: MessageBox( 0, L"Hi there", L"My message box:", MB_SETFOREGROUND | MB_ICONINFORMATION );
 
you can undefine UNICODE and _UNICODE to get the ASCII versions
but Windows is UTF-16 and takes wchar_t*, not UTF8 with char*
 
11:57 AM
Afternoon
 
12:18 PM
The tool you'd have to write if it didn't already exist :-)
 
Hello guys , can I ask a question abt C scanf() function ?
 
@Failed_Noob yeah go ahead..
 
You can ask about std::scanf ;v)
 
@Potatoswatter :O
 
In C why can't we store directly store the value to a variable in scanf like scanf("%f", height); Instead of pointers
 
12:22 PM
@Failed_Noob That's just how functions work.
 
The function doesn't have access to the memory containing the local variable unless you take and pass a pointer.
 
@Failed_Noob scanf is a function, it probably does *height = whatever We need the address to modify the actual variable.
 
Arguments are copied into the function's scope.
 
Of course, C++ has an alternative pass-by-reference semantic which allows exactly what you're asking for. It makes pointers much less common.
 
To ask my own question. I am writing an email server, but I am stuck at the RCPT TO: command. How do I validate the recipient email?
 
12:25 PM
@LewsTherin With great difficulty.
 
Can you explain me this sentence "&height
In C a function cannot change the value of a parameter which is supplied to it." - C Programming by Rob Miles
 
Read the RFC, implement.
@Failed_Noob No need. Instead of trying to manipulate the parameter, we pass a proxy parameter instead which tells us something else we can manipulate (namely the original variable).
 
@Failed_Noob scanf takes an address. But what you are passing is a value of height. Which is most probably an invalid address
@KerrekSB sure...
 
@Failed_Noob In C, when you pass an argument, its value is assigned to a new variable in the called function. The caller and callee always each have their own separate variables.
 
I understand Thank you guys
 
12:27 PM
So you can always change the value of a parameter, that change just won't be seen by the calling function.
 
@LewsTherin Make sure that very."(),:;<>[]".VERY."very\\\ \@\"very".unusual@strange.example.com passes as valid.
 
Just make sure an at-sign appears somewhere and that the string terminates.
 
@Potatoswatter But what about the domain name?
I guess I could use a dns look up
Another question... how I actually send the mail?
 
Company intranets may have single-word domain names. Don't check DNS before you send, let the failure happen then.
 
@LewsTherin Maybe read this RFC too.
 
12:31 PM
@Potatoswatter I have no idea how to send the email. I can get the data from the UA. But no idea what the MTA is
@KerrekSB Thanks
 
12:42 PM
@LewsTherin Mail Transfer Agent
 
@keithlayne Yep, but how do I use it to send the mail? Is there an inbuilt function? :S
 
I used to write emails with telnet sometimes, but I don't think that will work these days
somebody has done an abstraction that you can use that way I'm sure on whatever platform
 
It works.
@keithlayne What's the abstraction do you know? I have been looking for hrs
 
standard c++?
 
I'm using C. There has to be some function to use the MTA.
 
12:46 PM
maybe I should scroll back and see what you were talking about... :)
 
What are you trying to do? Email consists of several components. Do you mean to write the SMTP server? That one usually just passes on the ingoing mails to some other agent.
(E.g. local storage if it's the final destination.)
 
@KerrekSB How do I pass it to other agents?
 
sendmail?
 
Any way you like.
 
is sendmail a function?
 
12:49 PM
Depends on what the next hop is! If it's local storage, you might just have a module somewhere that saves the mail.
 
sendmail is a program on (I think mostly) unix-like OSes
 
@KerrekSB Not local storage. If it is local storage I'd be finished by now.
@keithlayne I will look it up, thanks.
 
bash keyboard shortcuts don't translate well to other programs like browsers...
 
also
I can't stop thinking about subset sum solutions and wondering what their complexity is
 
@DeadMG That will slowly drive you mad. Better to drink some gin.
 
12:56 PM
@Potatoswatter If you care about data getting to the device, you should flush explicitly, and not only software buffers. close throwing is just disrupting the flow for no good reason.
 
lol
 
Ugh, gin.
Try playing an FPS after three glasses.
Well, half-glasses.
 
Three half-glasses (fluid cups) is about half a fifth (bottle).
 
I don't know how much, but I couldn't feel my face.
 
That just means the medicine is working :v)
 
1:14 PM
d:\dev\test> type con >foo.cpp
#include <iostream>
using namespace std;
int main() { cout << "Hello, cling-clong world!" << endl; }
^Z

d:\dev\test> clang++ foo.cpp
foo-839435.o : error LNK2019: unresolved external symbol __ZSt4cout referenced in function _main
foo-839435.o : error LNK2019: unresolved external symbol __ZdlPv referenced in function __ZNSt14error_categoryD0Ev
foo-839435.o : error LNK2019: unresolved external symbol __ZSt18uncaught_exceptionv referenced in function __ZNSo6sentry
D2Ev
 
Don't you have to use clang with some libstdc++ option?
 
0
Q: Hello, looking help for CC+ send packets ?

user1055319I wanan use C++ send packets or make macro like f1-f12 1-9 keys with no delay, but i have no idea wehat program instal, i download c++ but dont know how use it, Please if anyone have any good idea what helps me, post here ;) Thanks ! Martin.

 
@CatPlusPlus Wow.
 
@KerrekSB don't know i never used the beast before. but it says it is a gcc plug-in replacement. which it definitely is not
 
I suspect it is on Linux and OSX.
 
1:20 PM
Does clang do native windows?
 
Barely.
 
@AlfPSteinbach It's OK, you just have to supply your own library I think.
 
ok, i'll just ask this on SO
 
Could someone help piling close votes on this non-question? The issue was trivial and the question is no longer needed.
 
@AlfPSteinbach the last time I saw you ask a question everyone seemed surprised that you would have any questions :)
 
1:35 PM
@keithlayne well thanks for the compliment. but really what i and i think most people who mostly answer questions, do, is to know just a few key facts and relations, and then figure out things. sometimes involves a little experimentation. i'm terribly bad at remembering arbitrary names and facts. for example.
0
Q: clang link errors in windows

Alf P. SteinbachI just downloaded the CLang sources, made a Visual C++ 10 IDE workspace by using CMake, and built everything from Visual C++ 10.0 (express). Now I get a bunch of linker errors on hello world: d:\dev\test> type con >foo.cpp #include <iostream> using namespace std; int main() { cout ...

 
2:02 PM
sleeeeeeeeeeeeeeeeeeeeepy
 
hola :)
 
: )
ppurl.com/category/it , a chinese 'free' ebook website
 
hallucinating chaters :)
 
2:48 PM
What is the difference between parameters and arguments in C
 
A parameter or "formal argument" is the name declared inside a function. The argument is the value bound to the name by the caller.
If this starts to make a difference to you, go get a cup of coffee and come back when you're thinking about something else.
 
"C does not allow strict level compatibility between parameters and arguments " - from a book . Thats why I asked the difference
 
I have no idea what that sentence means, but yes, binding arguments to parameters is a tricky part of most languages. So in that context the difference is important.
 
okay
Thank you
 

« first day (399 days earlier)      last day (4546 days later) »