« first day (1861 days earlier)      last day (3312 days later) » 

21:06
hmm
how the fuck do you get a public link in amazon s3?
@Lalaland And that's why you should use ranges :P
@Prismatic Are you running X11 app over SSH tunnel or any other way remotely? Then the lag can happen. If you are running locally, it should not happen.
@Owatch They weren't under control few minutes ago where you had i = 1 as opposed to i = 0. That class of errors would have been prevented by ranges.
@GregorMcGregor OH FFS! (1) I had my speaks so loud it almost woke up my daughter sleeping in the other room. (2) How is it possible I fall for it every fucking time?
no its local. I had to disable compositing to get vsync to work. Now I get lag when I resize the window
21:09
That would be because I am not always serious, evidently it wasn't under control.
@Rapptz Sorry for what I said earlier. That was harsh for no reason.
@Jefery It's okay.
Its just frustrating that you can have such insane high performance graphics and everything but the windowing system isn't crisp and smooth etc. I'm just a complainy pants
Some other file is not being found (how else would CL.EXE be giving you error messages...) — sehe 7 secs ago
I should not go outside
hm
seems that you can't dl a folder from s3 :( only individual files
guess I'll have to shit around archiving them myself
21:17
LOLWUT
This got upvotes:
0
Q: reading data from a file into an array

Mikehi pretty new to C++ and stack overflow,i'm just getting into coding and I need some help. for a class assignment i have to read data values from a file into an array , and use loops to determine how many values were entered into the array. so far my code looks like this #include <iostream> #inc...

> array(entries = 0, entries < max_entries, entries++)
21:31
sizeof('a');

sizeof : unsigned (1)
  'a' : char ('a')
Hm, 'a' being of type char does not conform to the C standard, does it?
Ah, found it:
> An integer character constant has type int. The value of an integer character constant containing a single character that maps into a member of the basic execution character set is the numerical value of the representation of the mapped character interpreted as an integer.
stupid C rules
Hey. That is the Haskell logo..
I don't know anyone who knows Haskell.
Ask @Bartek, he is a Haskell enthusiast.
@fredoverflow I think 'a' is char in C, but int in C++?
Also @Elyse who knows basically every programming language in existence.
@melak47 Other way around friend.
21:40
ok, whatever. who uses single chars anyway :p
@fredoverflow In C++ 'a' is char, but 'ab' is int
@milleniumbug first off in C++ single quote (') are used for single letters such as 'a' or '\n' single quotes aren't used for string such as ab instead C++ coders would use double quotes "ab" rather than the error of 'ab'. Second, 'ab' is not an integer value. integer values are number such as 42 or 2. "ab" is actually a string so it belongs in a string datatype.
3
lmao
enjoy your star friend
wtf is this
@AndrewTew wow
21:46
:D
hh
You're welcome to try using double quotes around a char..
Compiler will complain.
what is going on lol
the line putchar("x") for instance.
are you new to C++
Me?
21:48
yes
Yes.
I mostly work with Objective-C..
And some C.
Never touched C++ before.
putchar takes in an int.
in C 'a' is int.
"a" alone won't get the compiler complaining
that's a string literal of const char[2]
My compiler complains..
MarkupParser2.c:90:13: warning: incompatible pointer to integer conversion
      passing 'char [2]' to parameter of type 'int' [-Wint-conversion]
    putchar("\n");
yes...
because it's not an int.
21:51
I know it's not an int.
Probably because integers are numbers and chars are characters...but idk if you are running a C++ Compiler
> The value of an integer character constant containing more than one character, or containing a character or escape sequence not represented in the basic execution character set, is implementation-defined.
I'm specifically saying that if you wanted to see why a double-quoted character doesn't work, then you are welcome to put in some double quotes and watch what is outputted.
I'm not arguing or confused about the fact that trying to use double quotes (And passing a string) is wrong.
That doesn't make "a" illegal by itself, and that's what your seemed to imply at first before giving the putchar example.
both of these are valid
'a'
"a"
and
21:53
65
Well in C++ both of those are invalid
I'm probably running into a decltype gimmick, but std::is_same<const char[4], decltype("abc")>::value == false
makes sense
@milleniumbug const char(&)[4]
@milleniumbug expression is an lvalue
21:54
aaaaah, good to know
I always forget that
never not forget that
it's the nicest way C++ can pinch your butt
Guys, I need plotlines for my C++ RPG. So far it is about a continent that is split up between the 4 seasons and each region that is a specific season (Winter for example) is permanently that season. You (The Player) have just woken up and looked in the bathroom mirror (Character Customization) and now something fast paced needs to happen. You and your spouse are in the same room... any ideas? Ask questions if you need to.
pick up a towel, toothbrush, screwdriver, painkillers and get out of there
@Rapptz Wait whaaaaat.
21:59
@AndrewTew You want suggestions for something fast paced?
^ Spouse is in the same room.
You got this.
@AndrewTew Why would those be invalid?
@Nooble decltype returns references for lvalues that are not identifiers.
@fredoverflow sorry I meant valid lol
@fredoverflow Oh.
That's weird.
int x;
decltype( x ) -> int
decltype((x)) -> int&
22:01
In C++17 we'll get decltype(((x))) equivalent to int&&
:')
@prismatic yeah, something fast paced and action packed to move into the main plot
@fredoverflow member-ids (e.g. foo.i) get the same treatment as entities
not to mention you get references as well for xvalues :D might as well link to one of my answers so I get rep
hehe, much better ideone.com/Mc6nTx
@milleniumbug for int& i = …; you report int, but the declared type is int&
you can’t win
ouch
yeah that's not a decltype then
maybe it should be called exprtype or sth
22:04
I like decltype
@milleniumbug Neat.
@Rapptz which one?
@Rapptz And then suddenly Lisp++
Are you allowed to post programs in the chat room?
@Rapptz Is template<typename X> auto foo(X&& x) -> decltype( std::forward<X>(x).lol ) { return std::forward<X>(x).lol; } correct?
22:05
yeah I can't unadd parens with preprocessor
@AndrewTew You could link to the source, I suppose.
Like a github repo.
@LucDanton the declared type? yeah
the expression type? no
put it on ideone or coliru or gist
@Rapptz what?
Hm?
22:08
I don’t understand
@LucDanton But the expression type of i could be argued to be int, right?
@fredoverflow depends
References decay to referees without exceptions, right?
i.e. depends on whether you want value category to be reported (somehow) as well
@LucDanton If you have struct X { int lol; };
and then do foo(X{}); the decltype would resolve to the declared type that you have for lol which is int
22:10
@fredoverflow 'decay' has a special meaning
am I wrong here?
@Rapptz yeah that’s right
@LucDanton No it doesn't, the standard does not mention "decay" anywhere :)
user1804599
@fredoverflow Indeed: such decay never throws.
user1804599
@fredoverflow std::decay needs to talk with you.
22:11
@Elyse inb4 illegal null reference
@fredoverflow ?
Oh crap, I am confusing C++ with C again, sorry guys :(
@fredoverflow C has neither references nor decltype
user1804599
Try C/C++.
@LucDanton I just searched for "decay" in the C standard ;)
22:13
butwhy.jpeg
Hey guys test out this C++ game I made, ignore the error it will still compile and run.
whynot
cos brain fog
@LucDanton It's 2015 m8
@AndrewTew Oh no! using namespace std!
22:13
We use .JPG now.
.JPEG is for casuals.
Also lol ThisCase.
user1804599
@AndrewTew CompanyIntro is difficult to maintain.
user1804599
"Are you Black or White?" may be offensive to transrace people.
@Rapptz umad.mov
@AndrewTew seasons.cpp:79:12: error: ‘_sleep’ was not declared in this scope
22:15
@fredoverflow That's platform dependent.
std::this_thread::sleep_for(std::chrono::milliseconds(100))
system ("mode 1000");
system ("color 4f");
Will this work on Linux?
No.
lol
@AndrewTew Stop abusing system() D:
22:17
fred@blackbox ~ $ LANG=C man mode
No manual entry for mode
:(
oh you speak C
cout << "\t\t\t\tFBI Notice:\n";
cout << "\tAll rights reserved. This game or any portion thereof\n";
cout << "\tmay not be reproduced or used in any manner whatsoever\n";
cout << "\twithout the express written permission of the publisher\n";
cout << "\texcept for the use of brief quotations in a review.\n";
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Oh god, I need to write a review for a game that won't compile on my system :(
Lol.
> FBI Notice
welp lost connection to game server before boss fight
22:20
@LucDanton What does the C in LANG=C stand for, anyway?
@fredoverflow Default C locale
@fredoverflow Locale; C locale is always guaranteed to be present
But it doesn't have anything to do with the C programming language, right?
It does, as much as it's its default locale
interesting
22:21
But the output won't be in C
@fredoverflow well, it borrows the convention from C
It's basically ever-present en_US
I assume… it would be surprising if it were the other way aronud
@Elyse omg I just looked at it, and now I have eye cancer!
@AndrewTew TYL (Today You'll Learn) the std::string::substr function
22:24
while (Answer != "White" && Answer != "white" && Answer != "Black" && "black")
@AndrewTew Answer != "Black" && "black" does not do what you think it does.
(Why did I read all the way down to line 197?)
it's funny that a code gets posted on an online compiler, full of errors... if you're going to be that lazy, post it on pastebin
it's like a student handing over an assignment that doesn't compile... "so what am I going to do with it?"
@DanielKO no
ideone is superior in every respect
@DanielKO I presume it does compile on Windows?
22:26
@fredoverflow It looks like it will.
it most probably does
So, has anybody played the game yet?
nope because it doesn't compile
Have you tried VC6?
what package has VC6?
22:28
Guys the game DOES compile
you just have to compile it on a local source
not the online server
@AndrewTew Not on anything but Windows.
_sleep is considered an "Error" but it does its job and the program will run
how many botnets will my computer join
@AndrewTew No it won't :P
22:29
wat
_sleep is an undeclared identifier on non-windows machines.
@AndrewTew You can't run programs that fail to compile.
You're using platform-dependent things.
user1804599
Author is a noob and does not (yet) understand platform-dependentness.
22:31
Well, goodnight.
user1804599
@GregorMcGregor I saw a shop named "McGregor" today.
@Rapptz what's that
user1804599
@milleniumbug a screenshot
an utterly fucked git repo
@Elyse no shit
22:34
@Rapptz So... a git repo?
@Nooble nop
ah
the glorious feeling after a major rewrite
it compiles but you know shit's got bugs
@Nooble what's a code that will do the same thing that _sleep does and works on all platforms/compilers?
@AndrewTew just FYI
when someone uses the term "a code"
@AndrewTew use std::this_thread::sleep_for
22:39
it's an instant noob red alert
I'm confused if it is a code or a function or an operator
you can say
"a line of code"
or "some code"
saying "a code" is a bit like saying "a money"
"Hey, how many monies do I owe you? You lent me another money yesterday. - Oh, you owe me 3 monies."
lol thanks orlp
Anybody happens to know in what dll d:DesignHeight lives?
@AndrewTew It's a function.
I wonder how std::this_thread stuff is implemented.
user406009
22:53
@Nooble Thread local variables.
user406009
inb4 "I wonder how thread local variables are implemented."
nice, sampling Isley Brothers I think
@Lalaland mapping thread ids (I assume). thread local access is rather slow.

« first day (1861 days earlier)      last day (3312 days later) »