« first day (682 days earlier)      last day (4267 days later) » 

6:00 PM
It's easy to tell what it was from looking at the code though
Why did he get downvoted?
 
For not including the errors.
 
@Rapptz not listing the errors
 
I guess it makes sense
lol std::string for char
 
@Rapptz eh, fine by me
 
Nothing wrong with it, I guess.
Do I have limited comment upvotes
 
6:03 PM
Think so.
 
In fairness to him, often in C++ most of the errors are meaningless and disappear once you solve the real ones. Doesn't excuse not quoting any of them, though.
 
Xeo
hm.. can somebody get the source and try compiling it (if you have MSVC10 and Boost 1.49+)?
just as a safety check
 
I can try I guess
what kind of project is it
 
Xeo
of course, you can also try it on Linux and manually pull all the dependencies together :)
@Rapptz ?
 
oh it's hg, I only have git
 
6:06 PM
lol
 
Xeo
get it as a zip, gzip or bz2
 
like console, empty, win32
 
I can try it later tonight.
 
Xeo
console
 
Chrome always crashes when I download something.
 
6:11 PM
@MooingDuck Why have i seen lots of people say that in here int i isnt intiallized and they call this i=0 the intialization
@MooingDuck is that just commonly said/ assumed by people? Like alot of other things
 
lol.
 
@MohamedAhmedNabil when most people hear "initialization", they think of the point where the variable holds a defined value. This is remarkably close to the real definition, but is technically wrong.
 
@MooingDuck So its just said by people correcT?
 
did somebody here down-vote my workplace question?
 
@MohamedAhmedNabil yes, because a lot of people are taught wrong
 
6:13 PM
@MooingDuck That's said in Stanford Lectures lol
 
@MohamedAhmedNabil it's taught in many many universities :(
 
@MooingDuck They teach wrong stuff :O?
 
@MohamedAhmedNabil yes, it's very common.
 
I don't know, I usually say int i; is a declaration and i = 0; is an assignment.
 
@MooingDuck I noticed that :?
 
6:15 PM
I'm gone for a day and you guys are still discussing the exact same thing. Get a life.
5
 
> "Null sucks." -Doug Lea
@rubenvb Maybe they were too busy with their life and had to pause the discussion... whistles
 
@rubenvb it's been three or four days now actually
 
@MooingDuck "Using Notepad" is the main one.
 
2
Q: variable zero-initialization - undefined behaviour or not

Nikita TrophimovIs this a well-defined C/C++ program or not? int foo = foo; int main() { } Would foo be zero-initialized, or is it undefined behaviour?

 
@MohamedAhmedNabil why don't you just download the spec and read random bits of interest
 
6:17 PM
please close
 
@MooingDuck I honestly don't understand why you keep repeating yourself.
 
@MooingDuck Do you have any evidence that say that int i this also is intialization
 
@MohamedAhmedNabil github.com/cplusplus/draft lemme find the sections
 
@JohannesSchaub-litb The original has a remarkably bad title though.
 
i gtg now when i get back , bye
 
6:18 PM
@JohannesSchaub-litb doesn't seem like your dupe is relevant.
It's not about main, it's about the foo = foo static.
 
§8.5\11 "If no initializer is specified for an object, the object is default-initialized; if no initialization is performed, an object with automatic or dynamic storage duration has indeterminate value."
§ 8.5\6 "To default-initialize an object of type T means: otherwise, no initialization is performed"
waiiit
stupid spec
 
Anybody here use D?
 
so int i default initializes i which means no initialization is performed. So is it initialized or not? @JohannesSchaub-litb?
 
Is name mangling strictly necessary? I mean: linkers now can take care of longer symbol names, can't they? So why not just use the fully qualified name instead of mangling everything to death?
 
@rubenvb it never had anything to do with length, and everything to do with what characters the linker accepted. (to my knowledge)
 
6:23 PM
@rubenvb Still got the problem of overloading.
 
@DeadMG no you don't, the argument types are part of the symbol name.
@MooingDuck OK, let's make a linker accept those symbols. Problem solved, right?
it's not that the basic execution character set C++ defines is so humongously large.
 
@rubenvb most linkers do AFAIK, but that functionality is ignored. But yes, theoretically that'd solve the problem
 
Why do you think @CatPlusPlus is a she? — rubenvb 6 secs ago
Anybody ever taken a look at Mozilla's Rust?
 
§ 3.6.3\1 "Destructors (12.4) for initialized objects (that is, objects whose lifetime (3.8) has begun)..."
§ 3.8\1 "The lifetime of an object of type T begins when:
— storage with the proper alignment and size for type T is obtained, and
— if the object has non-trivial initialization, its initialization is complete."
 
@rubenvb He's a pussy.
5
 
6:29 PM
@MohamedAhmedNabil there we go, those prove that int i; includes initialization
 
@MooingDuck Not enough. Look for the definitions of default initialization and stuff.
 
guys
I actually had a good fucking sleep for once
 
The quotes you provided only explain what happens for initialized objects, not what counts as initialization.
 
@R.MartinhoFernandes quoted those 7 minutes ago, default initialization for an int is no initialization. Which is why I needed more quotes :(
 
Oh, sorry.
@DeadMG Not happy for you, but congrats.
 
6:35 PM
@DeadMG You should try that more often.
@rubenvb What's that? Mozilla's answer to Google's Go?
 
@EtiennedeMartel just found it when googling something about msvc and name mangling. I have no idea what it's supposed to be.
I guess everyone is writing their own language these days.
 
Looks like it's a programming language.
@rubenvb Yeah. Especially puppies.
 
I'm subtlety incarnate.
 
Foxes, droids and puppies. All Writing languages.
 
6:40 PM
Droids?
Oh, Google.
 
@R.MartinhoFernandes Google. Couldn't find a better mascot.
 
Yeah, I thought it was me for a moment.
All I have designed of my own language is the name.
 
lol. I thought you might think that.
 
@R.MartinhoFernandes You could write your own language. It's core feature would be excellent Unicode support.
 
@R.MartinhoFernandes me too. I got the namespace/class qualification syntax too. And what the C interop will look like.
 
6:42 PM
Rust sounds weird.
> A value of type str is a Unicode string, represented as a vector of 8-bit unsigned bytes holding a sequence of UTF-8 codepoints.
This sounds a lot like "We have no idea what we're talking about. Also, we like UTF-8."
WTF is a UTF-8 codepoint?
 
Dude, their Mozilla devs. They like UTF-8 because UTF-8 is the encoding of the Web.
 
@EtiennedeMartel Well, they could write sentences that make sense. It's possible in UTF-8 too.
Now I don't know if they mean "UTF-8 code unit", or "codepoint that happens to be stored in UTF-8"
 
@R.MartinhoFernandes They code write sentences? What?
 
WTF did I write.
 
What you wrote.
 
6:45 PM
@R.MartinhoFernandes yeah, I thought a code point was one char32_t, or a varying number of char8_t's.
 
It was a joke. I was writing a nonsensical sentence about others writing nonsensical sentences. whistles
 
@R.MartinhoFernandes > A value of type str is a Unicode string, represented as a vector of 8-bit unsigned bytes encoded in UTF-8. Really the only plausible interpretation
 
8-bit bytes
 
octets, I think that's the word.
 
@MooingDuck Yeah, seems they mean "code units": "A value of type char is a Unicode character, represented as a 32-bit unsigned word holding a UCS-4 codepoint"
 
6:47 PM
@EtiennedeMartel octets of what? Octupussies?
 
@rubenvb An octet is a 8-bit byte.
That's how we call those in French, and it also happens to be the term used in the Unicode spec. I think.
 
@EtiennedeMartel "octet" has a much wider range of meanings: en.wikipedia.org/wiki/Octet
well, one to be exact.
that list is confusing.
 
@rubenvb lets improve the title
 
What the hell, my chat has exploded.
 
@EtiennedeMartel at least you're still alive.
 
6:48 PM
@EtiennedeMartel Unicode uses byte.
 
a bad title should not stop it from being a duped question
 
But they're not particularly precise about their terms.
 
I think it switch to the mobile layout. Or something.
 
(They use "character" to means various things)
 
Anyone knows how I can switch back?
 
6:49 PM
what title do you recommend?
 
Ell
Damn! I was on chat roulette to a Norwegian girl and she skipped mid sentence :'(
 
Aaah. Found it.
 
@JohannesSchaub-litb "Is initializing a global variable with itself undefined behavior?"
 
I like Rust's check, prove, claim thingies.
 
An octet is a unit of digital information in computing and telecommunications that consists of eight bits. The term is often used when the term byte might be ambiguous, as historically there was no standard definition for the size of the byte. Overview The unit byte is platform-dependent and has represented various storage sizes in the history of computing. However, due to the influence of several major computer architectures and product lines, the byte became overwhelmingly associated with 8 bits. This meaning of byte is codified in such standards as ISO/IEC 80000-13. While to mos...
 
6:51 PM
@R.MartinhoFernandes seems like at least check was removed
 
@rubenvb please refresh
changed title to something meaningful
 
@JohannesSchaub-litb can't see it :/
@JohannesSchaub-litb you changed the title of your own question?
you linked another as duplicate for the other question
 
Why is the Definite C Book List closed?
 
Because it is a question on Stack Exchange.
 
@Rapptz it isn't?
 
7:03 PM
243
Q: The Definitive C Book Guide and List

lillqTo follow the example of The Definitive C++ Book Guide and List for C Books here is a wiki post for organization. A tag search for "C" and "Books" returns no complete book list results as of writing this question. That search is here. This post is to providing QUALITY books and an approximate ...

 
@Rapptz oh, C, not C++
 
The C++ book question is the only one blessed to stay opened.
 
25
Q: Why is "The Definitive C++ Book List" question allowed, but other book recommendation questions are not?

Robert Harvey Why does this question get a pass, but I can't ask my own book recommendation question? Can I ask my own book recommendation question in a way that is acceptable to the community, like the C++ book list question?

20
Q: How can we discourage book recommendation questions?

Ricardo AltamiranoThe issue of book recommendations has been raised before (to name a few examples); however, I'm raising it again because the problem doesn't seem to have gone away. books has over 2,500 questions, so I haven't had a chance to sort through them all. That being said, I've burned through almost 200 ...

 
@Mysticial Kind of weird huh?
 
@Chimera no, it's often used to point newbies to references to actually learn something before they ask stupid questions.
 
7:06 PM
@rubenvb You mean, after they ask stupid questions.
 
@rubenvb No, what's weird is that the C++ recommended book list question gets a pass while the other ones don't.
 
@Mysticial yes. Before they ask more stupid questions.
 
@Chimera yes it is
 
@Chimera We have an active SO Chat and Meta insurgence.
And there are a lot of awful C++ books.
 
I think it's great that the C++ book list remains, but I wonder about the "fairness" of it.
 
7:08 PM
@Chimera agreed
 
@Chimera I like Shog's argument.
 
7:32 PM
ah chat is back
 
Ah, chat is back :)
I thought the world was about to end.
 
Ell
I thought my internet was dying :O
scared me for a second
 
Xeo
Chat was gone?
 
Yep. Maintenance, it seems.
 
Ell
phew
 
7:42 PM
@R.MartinhoFernandes The world didn't end. It just had a BSOD, and took a while to create the dump file.
 
ah chat is back
I thought my employer cut off access.
 
Ell
speaking of dumps
 
@R.MartinhoFernandes That's it, I can no longer write any C# code without ReSharper.
 
A tuple is un-brace-initializable.
 
@EtiennedeMartel What does ReSharper do?
 
7:44 PM
@EtiennedeMartel Hehe.
@Chimera Sex.
 
@R.MartinhoFernandes Great tool!
 
@Chimera Refactoring tool for .NET. Unlike VAX or what's in Eclipse, it also gives suggestions. Which is what I like the most.
 
@EtiennedeMartel Ah ok, sounds quite useful.
 
Xeo
@rubenvb You might be able to make it brace-initializable, I think
cut all the constructors and make it work by aggregation
 
@EtiennedeMartel It feels like it thinks along with you.
 
7:48 PM
@R.MartinhoFernandes Yep. The other day it caught a NullReferenceException for me.
 
Heyyyy
 
@Xeo still a stupid std limitation
 
Xeo
Well, what about for(auto& e : a_tuple) :P
 
@Drise Hay
 
Ooo do I have a new gay friend?
 
7:55 PM
?
 
Everyone's gay!
 
I'm happy.
 
Only gay people use "hay"
homosexual s silly.
 
Well, I'm not gay.... so hey.
 
@Drise hey :)
 
7:55 PM
@Drise And farmers.
 
nils!
 
Nothing wrong with being homosexual, but I'm hetero
 
Ell
just go on chat roulette.
 
Dat dick.
 
7:56 PM
Have you had a look at my Qt question?
 
Fuck Qt.
 
No! Really fuck GTK!
 
Evening
 
Hello
 
@Chimera Fuck both.
 
7:57 PM
Anally?
 
@EtiennedeMartel LOL, that works also.
 
@Drise forgot what it was about
 
are we playing Anal Commando?
 
Ell
I am hereo too
I have a problem with gays that are in your face though
 
Let's all rebel against GUI's and write our code using curses.
 
7:58 PM
@Ell Fun fact: those don't actually exist.
 
qt-project.org/forums/viewthread/19906 mine is about properly implementing undo on the MV classes
 
Nils, it's on my profile. I'm on mobile, so chat is essentially a pile of donkey shit.
 
ah on SO or in the chat?
 
OMG so many people joining the lounge.
<-- braces for trolling.
 
Ell
@EtiennedeMartel they do. I know several
 
8:00 PM
@Ell Eh?
 
Nils, SO. As to your question, I have no idea.
 
Ell
@EtiennedeMartel meh nevermind, I think I misunderstood
 
heh
 
Is cash a global word for "physical money", or is it just a US thing?
 
@Drise We use it here as well.
 
8:03 PM
@DeadMG What are you up to puppy?
 
@ManofOneWay Chasing his tail.
 
@Drise Humm I would need a working example on my box..
@Drise What do you mean with "However, printed to cerr is edit: editing failed and the item is not in edit mode."
@Drise I mostly used the MV classes, but I guess it is just a detail you are missing.
 
@JerryCoffin :)
@JerryCoffin What are you up to?
 
@Drise I always thought "bucks" was a Canadian/American thing, not Cash though
 
@Xeo tuples aren't iterable.
 
Xeo
8:15 PM
@rubenvb They are! Through recursion :(
 
The fonts in QtCreator look far worse than in Xcode!!!
:(
 
@Nils Qt5 says it improves on that
 
Consolas4life
2
 
eq-
@rubenvb, I don't think Qt5 does anything to fonts in QWidget based apps
 
@eq- font rendering is font rendering.
 
8:16 PM
ah well there is no creator yet
Or at least no stable
 
eq-
@rubenvb, what's that supposed to mean?
@Nils, do the fonts themselves look worse, or are they just different (typefaces)? You can change them...
 
not sure
maybe I also just need a retina macbook :P
 
eq-
@Nils, it's unlikely to improve fonts on QtCreator just yet
 
I also would like to have Mac keybindings on the mac, like ctrl-e to go to the end of the line.
 
eq-
Oh how I've longed for HDPI screens on computers...
 
8:23 PM
There should be a SI unit for pain measurement.
Could be called "java".
"This code gave me 12 javas".
 
Java currently has an exploit
Well there's an exploit written in Java.
 
eq-
But at least it's portable!
 
it includes font rendering fix in Qt for the text editor.
maybe related to what you're experiencing.
 
:) thx
hey I have 2.5.2
 
Well I'm gonna go.
Bye guys
 
8:34 PM
Write once, exploit everywhere.
 
eq-
@Nils, could you take a comparative screenshot of QtCreator and XCode side-by-side?
 
AAAHAHA
0
A: can template alias be used for partial specialization?

Johannes Schaub - litbAnother guy said that this is a Clang bug. You can work it around if you change the using declaration like this template<unsigned T, unsigned U = T> using uint_ = integral_constant<unsigned,U>; As an educated guess, apparently Clang does not correctly update the identity of the tem...

 
I saw this today and wondered if that isn't UB: int x = 5; int y = ++x;
 
@Drise hay, nay and yay :) not only homosexuals
@TonyTheLion you wonder too much
but... why is it UB?
 
sequence points and the pre-increment operator
I'm not sure, that's why I'm asking
 
8:38 PM
@TonyTheLion please elaborate where you see the problem
 
assigning to y and incrementing x in the same statement
 
please elaborate why that is problematic
 
as I said before, something to do with sequence points
 
i see no problem with that
 
ah
ok then
 
eq-
8:41 PM
What use would the prefix-version of the increment operator have if you couldn't depend on it's value?
 
@eq- ^
 
@TonyTheLion yeah, totally fine, no variable is changed more than once
 
ah right
 
eq-
@Nils, on first look they look identical to me (the proportional code part, that is); when comparing parts that can be compared
(I'm using a slightly higher DPI laptop now, so can't say for sure without zooming in.)
 
no the Xcode font is a bit sharper
Or is it? Not so sure..
 
eq-
8:45 PM
There is a slight difference (just checked)
 
6
A: iterate over tuple

emsrI have an answer based on Iterating over a Tuple: #include <tuple> #include <utility> #include <iostream> template<std::size_t I = 0, typename... Tp> inline typename std::enable_if<I == sizeof...(Tp), void>::type print(std::tuple<Tp...>& t) { } temp...

almost
 
eq-
For some vertical lines (and horisontal too, probably) the XCode has more gridlocking than QtCreator does. Can't really say why that is (for the samples I've compared it might be just the window position; but that's unlikely if you notice the problem all the time)
But on this slightly higher DPI screen (IIRC around ~130) it's hard to see without zooming in
 
thx for checking :)
 

« first day (682 days earlier)      last day (4267 days later) »