« first day (1576 days earlier)      last day (3386 days later) » 

3:00 PM
-3
Q: Operator overload ()

Fotis455Why the result of this 3? I don't underastand what "Class1() :a(3)" means. class Class1 { private: int a; public: Class1() :a(3) { }; Class1(int f) { a = (int)f; }; }; And this is Main int main(void) { Class1 c11; c11.print(); ...

 
lol
 
user1804599
> This question already has an answer here:
The Definitive C++ Book Guide and List 1 answer
 
user1804599
:D
 
lol
 
user1804599
I was just in time before @πάνταῥεῖ dupehammered it!
 
3:02 PM
@рытфолд wait... rightfold? Is that you?
 
user1804599
Yes?
 
@рытфолд Couldn't really recognize you other than by that weird name in Cyrillic letters
 
@Columbo kyrillic? i thought it was russian
 
user1804599
how does this shit work
 
@рытфолд Took a bit to find it. I'm going to put that on my on hands list now.
 
3:03 PM
same thing? :|
 
@рытфолд Go play in the sandbox
 
user1804599
@πάνταῥεῖ I always close-vote C++ noob questions as dupe of book list.
 
Numerous alphabets are based on the Cyrillic script. Some of these are illustrated below; for others, and for more detail, see the links. Sounds are transcribed in the IPA. While these languages by and large have phonemic orthographies, there are occasional exceptions—for example, Russian ⟨г⟩ represents /v/ in a number of words, a relic from when they were pronounced /ɡ/ (e.g. его yego 'him/his', is pronounced [jɪˈvo] rather than [jɪˈɡo]). Note that transliterated spellings of names may vary, especially y/j/i, but also gh/g/h and zh/j. Non-Slavic alphabets are generally modelled after Russian,...
 
@рытфолд That's probably a stupid behavior.
 
user1804599
I don't think so.
 
3:05 PM
how many get closed as a dupe of that question?
 
user1804599
Stack Overflow is a question and answer site for professional and enthusiast programmers, not for noobs.
2
 
@рытфолд Almost star-worthy
Whatever
 
@Blob I guess this is how most implement it. I haven't actually bothered to read any implementation of it (since I find it kinda.. stupid)
 
@FilipRoséen-refp What is that ref-qualifier for
0
Q: How to google weird characters like "~" inside questions, for example what does that mean in c++ before a constructor?

JoopIn visual studio I am trying to get started with c++. I created a class and it's helper file. I see in the helper file that there are two constructors declared. One with and one without the ~ sign. Like this: Age::Age() { } Age::~Age() { } Now my question is, what does the special character ...

wtf
 
> [U.S.M.C.] {VaDiM}
uploaded a screenshot of Counter-Strike: Global Offensive with you in it
I'm a star
 
3:09 PM
Shit's getting worse
 
@рытфолд Arguable. What's a noob? Is it regarding being noob to the site, or the programming language(s). Recommending books to grasp the basics isn't that bad, but we have better answers at hand.
 
also wtf I did not know the game could do this
 
@Columbo to prevent the less fortunate to write something as auto contains_1 = 1 <in; std::vector<int> v1 {1,2}, v2 {3,4}; contains_1 > v2; contains_1 > v2;
 
@FilipRoséen-refp "the less fortunate" :D
 
user1804599
@Columbo same thing!
 
3:10 PM
@Columbo people are stupid..
 
@FilipRoséen-refp Wait, wait
 
user1804599
Arguably the question is off-topic instead of a dupe as it belongs on Web Applications.
 
To everyone who responds to everything by saying they've 'lost their faith in humanity': Thanks--I'll let humanity know. I'm sure they'll be crushed.
3
 
@Columbo why are you sending me stuff that I've already seen, do you live in the past or something?
 
@FilipRoséen-refp Because there is a slight chance you might chuckle again
 
user1804599
3:12 PM
I wish C++ used this for ctors and ~this for dtors.
 
@Columbo I need to go to the bathroom, and have a smoke.. I'm not chuckling - but maybe I will in a while
 
user1804599
Makes renaming classes and calling dtors explicitly easier.
 
@рытфолд It would make some thing easier for sure.
Macros, for example.
 
regarding the hype about a <infix> b, I'd rather have with (std::vector<int> {1,2,3}) | grep (0) | count ()
@Columbo fcuk macros
 
user1804599
It'd also allow ctors and dtors in anon class defs.
 
3:13 PM
@FilipRoséen-refp #define fcuk fuck
 
but it would make it possible to write constructors/destructors for anonymous classes
 
@FilipRoséen-refp Isn't that possible via decltype yet? (No...)
 
@Columbo No.
 
@FilipRoséen-refp "I need to go to the bathroom, and have a smoke." You're going to smoke only in your bathroom? That sounds weird, most people use their balcony, when they don't want to smoke inside their living rooms.
 
@FilipRoséen-refp You can use a decltype-specifier though. As in struct A {static A singleton; ~decltype(singleton) {} };
G++ doesn't swallow it
Clang does though
I've got an idea!
 
3:15 PM
@Columbo it's not anonymous, but you can make it work in c++14
 
@FilipRoséen-refp I know it isn't, I forgot to say "in general"
@FilipRoséen-refp Yeah I thought of the same thing
 
now I need to go to the bathroom
ploff
 
^ Have a nice smoke ;-D ...
 
user1804599
They're far from the same. For example; the latter one is even more horrible than the former one. — рытфолд 6 secs ago
 
user1804599
3:19 PM
lol explicit open and close what a noob
 
> functions cannot be declared in an anonymous struct
@FilipRoséen-refp Lol! Got it! ~decltype(auto)->decltype(*this){}
Doesn't compile in GCC though - time for a self-Q/A
Or just a Q, depends
 
@Columbo dafuq is this?
 
@milleniumbug A destructor inside an anonymous struct
 
user1804599
> id x returns x if x <> 0. If x = 0, the behaviour is undefined.
 
hahaha
 
user1804599
3:22 PM
I think this behaviour is far from reasonable.
 
user1804599
The restriction is needlessly arbitrary.
 
@рытфолд where is that from so we can all laugh at this?
 
user1804599
@milleniumbug I made it up.
 
user1804599
But if anything, I'd say it comes from JavaScript or PHP.
 
possible implementation: just return x?
 
user1804599
3:24 PM
Sure.
 
@Columbo How does the -> decltype(*this) work?
 
@milleniumbug Actually, this is really, really weird
 
@milleniumbug return type is whatever type *this is
 
@Blob But... this was supposed to be a destructor.
 
@milleniumbug it's all magic underneath
 
3:28 PM
morning
18 notifications wtf
 
I think I'll get some scrambled eggs with cheese done
 
@Columbo there's no need for a question about that, it obviously isn't allowed since ctors/dtors don't have a return-type a trailing-declaration isn't allowed
 
@FilipRoséen-refp I know
But let's presume I don't know that
Besides, Clang shows some hilarious behavior
 
@Columbo that's silly, just file a bug-report if clang accepts it
 
@Blob Here is Konrad’s.
> Remove Wheels dependency from code
gasps
 
3:36 PM
@LightnessRacesinOrbit Morning! LOL! Since you're known staying in the GMT time zone (aren't you?), that's I nice introduction ;-) ...
 
@FilipRoséen-refp The best part is that there isn't even a frickin' empty set of parentheses for the parameters
 
@Columbo def' not worthy of a so-question, just file the damn bug report
@Columbo file. the. bug. report.
 
Wow, I was impressed by an empty-declaration
I must be on drugs
Alright, let's do that
 
@рытфолд so you were bashing something you made up?
 
"Will this even improve the performance?" - Your profiler will tell you. I bet you've heard about premature optimization — sehe 22 secs ago
 
3:42 PM
@Columbo "I must be on drugs" How can you miss to actually know about this?
 
@πάνταῥεῖ About what?
Ohhh...
 
user1804599
@Columbo ask on Stack Overflow!
 
I see what you did there
"How can you miss to actually know about this"
 
user1804599
I think dtors return void.
 
@рытфолд That's why it's so funny
 
user1804599
3:43 PM
Fuck void.
 
@рытфолд Dtors don't return anything
 
user1804599
main.cpp:1:18: error: destructor '~a' should not return a value [-Wreturn-type]
class a { ~a() { return 42; } };
                 ^      ~~
 
user1804599
Extremely interesting.
 
@Columbo I always know what I'm doing.
 
@рытфолд No, that's boring as shit
 
user1804599
3:44 PM
Can you create a member function pointer to a dtor?
 
user1804599
main.cpp:4:5: error: taking the address of a destructor
    &a::~a;
    ^~~~~~
 
user1804599
Extremely interesting.
 
@рытфолд Extremely arbitrary. Random things compile, and random don't.
 
user1804599
Fuck C++.
 
lol clang crashed
> 0 libLLVM-3.6svn.so 0x00007f81c47e95d3 llvm::sys::PrintStackTrace(_IO_FILE*) + 51
1 libLLVM-3.6svn.so 0x00007f81c47e9cc3
2 libpthread.so.0 0x00007f81c37a7210
3 clang 0x0000000000aacaae clang::Sema::CheckPlaceholderExpr(clang::Expr*) + 46
4 clang 0x0000000000ca4c4d clang::Sema::BuildDecltypeType(clang::Expr*, clang::SourceLocation) + 13
5 clang 0x0000000000b0dfa1 clang::Sema::getDestructorType(clang::DeclSpec const&, clang::OpaquePtr<clang::QualType>) + 81
 
3:48 PM
"Here I get to the question: Where can I put an algorithm in my program?" Anywhere it is useful? — πάντα ῥεῖ 22 secs ago
???
 
With the code a.~decltype(auto); :D :D :D
 
> the project is supposed to contain an algorithm
#include <algorithm>
 
user1804599
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-767f36.cpp
clang: note: diagnostic msg: /tmp/main-767f36.sh
clang: note: diagnostic msg:
 
user1804599
Thank you!
 
3:51 PM
@рытфолд I saw it, what's so funny about /tmp
 
user1804599
@Columbo PLEASE submit a bug report to llvm.org/bugs and include the crash backtrace, preprocessed source, and associated run script.
 
user1804599
Thank you!
 
I'm not doing shit
 
user1804599
5  clang           0x0000000000cc2106 clang::Sema::getDestructorType(clang::DeclSpec const&, clang::OpaquePtr<clang::QualType>) + 70
6  clang           0x0000000000a801b4 clang::Parser::ParseUnqualifiedId(clang::CXXScopeSpec&, bool, bool, bool, clang::OpaquePtr<clang::QualType>, clang::SourceLocation&, clang::UnqualifiedId&) + 1716
 
user1804599
Parser calls semantic analyser. :(
 
3:54 PM
lol
why cannot it deduce Comp?
 
> The address of a destructor shall not be taken.
 
@πάνταῥεῖ yes
 
user1804599
@Jefffrey because C++ is shit.
 
slept for ~12½ hours and it was glorious
 
3:56 PM
HAHAHAHA
>
~decltype(auto)->A {
return 0.leckmichamschnödel;
}
compiles :D :D :D
 
user1804599
:(
 
user1804599
Now you have to file two bugs!
 
@Jefffrey Try this way perhaps?
 
user1804599
@AndyProwl Nice.
 
user1804599
OK time for implementing Boolean literals.
 
3:59 PM
I'm bored..
 
@AndyProwl Oh right. Thanks.
 
No prob
 
Hey Columbo - can I get your opinion on a question? I'm pretty sure my answer is bullshit and needs to be deleted in favor of T.C.'s.
 
Well wouldn't mine also have been semantically correct?
 
user1804599
No.
 
user1804599
4:00 PM
define "would"
 
@Jefffrey Maybe, not sure. Default arguments tend to be a tricky part for me.
 
@Jefffrey learn how to template for god sake.. see this paste (that should explain it).
 
Formally it depends on whether template argument deduction is attempted before the default argument is instantiated or after
I don't know which is the case from the top of my head
 
@FilipRoséen-refp Which is exactly the same as this one?
 
ah, @AndyProwl already posted it, didn't see that
 
4:02 PM
Almost the same, I did not use = {}, which is better than what I wrote
 
@Jefffrey not exactly, the paste I did doesn't repeat the type of fn!
 
@AndyProwl Default arguments don’t participate in deduction. Not so much a matter of order.
 
I see
 
@FilipRoséen-refp Ain't that pretty
 
@Jefffrey of course it is pretty..
 
4:03 PM
Well, I get what you meant though.
 
My extra Dropbox space is expiring
 
Mine too
 
Time to move backups to S3
 
University is becoming useless once again
(jk)
 
I'm still bored..
maybe I should head home
 
user1804599
4:08 PM
BooleanExpr parseBooleanExpr(R)(ref R lexemes) {
    scope(success) lexemes.popFront();
    switch (lexemes.front.token) {
    case Token.True: return new BooleanExpr(true);
    case Token.False: return new BooleanExpr(false);
    default: throw new SyntaxError("expected 'true' or 'false' but got '" ~ lexemes.front.value ~ "'");
    }
}
 
user1804599
This use of scope is nice.
 
@LightnessRacesinOrbit You're some decades younger than me, but I still remember wild sat nights ;-P ...
 
@Blob pff.. as if I'd ever get employed anywhere
 
user1804599
@Jefffrey write more Perl!
 
Can I get some love for this question? What're the actual template deduction rules here? It's an interesting scenario - and I think I need to delete my answer, but T.C.'s isn't quite complete either.
 
4:17 PM
@Barry are you really asking for "love" in Lounge<C++>? fuck off.
 
I have plenty of love here
you'll have to take it from me though
BY FORCE
 
user1804599
Today is a beautiful day.
 
it is, it started snowing
 
user1804599
Let's try to get a simple program to compile.
 
user1804599
And run.
 
4:23 PM
where should we run to
 
user1804599
lol
 
@AlexM. looks like.. Romania?
 
looks like Europe
 
user1804599
Holy shit.
 
user1804599
if true then 1 else 2 end returns 1, and if false then 1 else 2 end returns 2! I'm a heroine!
 
4:25 PM
@FilipRoséen-refp what gave it away, the pixels?
or my profile which says Romania
 
@рытфолд lol poverty
 
heroine addict
:D
 
user1804599
Are you one? :D
 
user1804599
Herobrine addict.
 
4:26 PM
Samsung released their Tizen OS with a phone and it's shit lol
 
I'm addicted to heroines... they're so hot :P
 
> Tizen's family tree. It's a big rolled-up ball of every other failed Linux-based smartphone OS. cdn.arstechnica.net/wp-content/uploads/2015/01/…
proof that failure lies in the genes
 
user1804599
What'd you expect?
 
I was playing this typing game with my girlfriend the other day.. to make it more "even" we decided to only write with one hand, and she.. won; what does that mean?
 
i know this dude called Alex who's also from Romania. Is it a common name?
 
4:27 PM
yes
 
user1804599
Alexandrescu.
 
it's also common in a shitload of other countries
 
@FilipRoséen-refp That you suck at typing.
 
everyone has their Alex* derivative
 
@AlexM. 100% of Romanians I know are called Alex.
 
4:28 PM
Romanian is Alexandru
 
@Borgleader pff.. 147 vs 82 wpm when we played with both hands
but apparently I'm not that good at writing with one hand, just.. couldn't do it
 
I need more carry capacity in Skyrim... idk if thats possible though
 
cheats
 
with or without cheating?
 
or tell Lydia to carry your weight
it's her job anyway
 
4:30 PM
fuck lydia
 
user1804599
Lydia is a Mojang employee.
 
WHAT THE FUCK IS JUICE!?
 
get some companion mod
 
@FilipRoséen-refp a drink obtained by squeezing fruits or vegetables
 
@AlexM. Spoiler? idk who that is
 
4:31 PM
or mashing them
 
@AlexM. Yoda, is that you?
 
@Borgleader some chick
if you haven't met her then I guess...
I always wanted to do this
 
user1804599
Maybe Microsoft.
 
@AlexM. top definition (dave chappelle reference)
 
user1804599
I don't know.
 
4:32 PM
wtf is mojang
it's microjang now
 
mojo jojo
 
user1804599
Minecraft needs a new update.
 
Now that Mojang is owned by Microsoft, Minesweeper will be replaced with Minecraft probably
 
You can do better than that
 
user1804599
4:38 PM
> Bending from the back can damage your spine; always damage your knees instead.
 
What should be done with questions like stackoverflow.com/questions/28396324/…
 
@Blob move them?
 
@Blob It's "too broad"
@Jefffrey Where actually?
 
@πάνταῥεῖ the apple SE site, I don't remember what's the name
ask different or something
 
They won't have an answer, unless it involves what i mentioned in the comment
i doubt apple has some way to do what he wants
 
4:45 PM
@Jefffrey Agreed insofar, that SO is the wrong place.
 
I mean that the SE site is literally named "Ask different".
 
What exactly is "flagging" a question when I have basically no rep?
Does it just inform a bunch of people with rep?
 
informs the mod probably
or sends the question to some 20k+ queue or something like that
 
@Jefffrey SoHipster
Answers for your hipster questions
 
it's a reference to "think different"
 
4:54 PM
I know
 
I didn't.
 
@Blob It's like flogging a dead horse.
 
fucking a dead horse, why would you do that when you could just as well write PHP?
 
@πάνταῥεῖ Meh no I was just in the Lounge until 2am ;p
 
@FilipRoséen-refp Well, it's difficult. One is illegal, one shoud be.
 
4:59 PM
@MartinJames actually it depends on what state/country you are in, in some places both are (strangely enough) legal
 
user1804599
I suggest making Earth a moon of Jupiter.
 
user1804599
Are artificial satellites considered astronomical bodies?
 
@рытфолд Wouldn't it be easier to move to a moon of Jupiter instead?
 
user1804599
Most certainly.
 
Perhaps we can rename Europa "Earth" to achieve what you want.
 
5:00 PM
@MartinJames as an example, it was legal to have sex with animals (as long as the animal didn't disapprove) until the 1st of April 2014 in Sweden. (and yes, the 1st of April is an unfortunate date to do anything, especially forming laws about something this joke-friendly)
 
user1804599
"New Netherlands II"
 
@FilipRoséen-refp Is there an official document on how to judge animal "disapproval"?
 
@Blob you could probably dig up old cases as reference material
 
user1804599
 
/cc @ScottW
 
5:05 PM
@Jefffrey ??
 
That is a website for paid tutoring. And some people storm in, paste their question and then realise it's a paid service.
It's actually very common.
 
time to head home ploff
 
Ell
@Jefffrey what website?
 
instaedu
 
If its that common, it's a bit of a fail on the website's part
 
user1804599
5:10 PM
Everyone knows only Stack Overflow is a website for getting instant help for free.
 
user1804599
Jul 3 '14 at 18:25, by Ty221
I thought the chat has been ccreated to get instant and fast help
 
Happy sunday everyone
 
user1804599
I hate Sundays.
 
user1804599
They prelude Mondays.
 
Sundays are just before Moondays
 
5:15 PM
lol...even i hate sunday night
 
@LightnessRacesinOrbit Sou that's what youth thinks is a wild sat night nowadays? O tempora, o mores! :-P ...
 
user1804599
Saturdays are nice.
 
@LightnessRacesinOrbit hows ur saturday?
 
@πάνταῥεῖ hey...
 
5:19 PM
^Wut?
 
Ugh the online food ordering site broke again
 
@πάνταῥε what you think about weekends?
 
@RonakPatel Having a nice time on my comfy couch most of them now. But I'm an old fart, and allowed to now.
 
@CatPlusPlus It appears as if you actually have to walk to your nearest restaurant to get food. Physically taxing, I know.
 
@CatPlusPlus You have only a single one to choose from?
 
user1804599
5:24 PM
@CatPlusPlus Construct a superior alternative.
 
@Jefffrey Has anyone asked you for C++ help?
 
@CatPlusPlus Have you considered walking or driving to a retail shop? You give them cash directly, they give you goods. IIRC, this used to be quite common.
 
@Nooble not yet no
 
Fiiinally, order got through
 
@рытфолд Construct_A_Superior_Alternative::Construct_A_Superior_Alternative()
 
5:25 PM
@πάνταῥεῖ allowed for what?
 
@CatPlusPlus what did you order?
 
Cat nip?
 
It's late, cold and snowing, I'm not going to a fucking shop
@Jefffrey Pizza
 
user1804599
I see Jupiter.
 
@Nooble Cat prefers virtual constructors.
 
5:26 PM
too much pizza is not good for you
 
user1804599
I should acquire a telescope ASAP.
 
@RonakPatel Allowed being lazy and stay at home. I wouldn't accept this for people under 40.
 
@рытфолд What? To turn a red blob into a bigger red blob?
 
@MartinJames We're a long ways away from virtual food, sadly.
 
user1804599
@MartinJames into multiple blobs!
 
5:27 PM
@рытфолд Don't buy bad optics. Also applies to bar managers.
 
@рытфолд Yes. And then you should start the RSA. Rightfold Space Agency.
 
user1804599
Sounds like a great idea.
 
user1804599
But I'm too poor for that.
 
@Nooble RSA already is Republic of South Africa. Need to get a different acronym.
 
@πάνταῥεῖ Gold digger...
 
5:29 PM
@πάνταῥεῖ Yeah, well, I bet they're not as cool as the RSA could be!
@рытфолд Shoot for the stars!
 
@MartinJames I once was visiting it, loved the country. There's much of gold to dig there!
@Nooble They even have Eucalyptus forests in RSA!
 
@πάνταῥεῖ Well, @rightfold can grow eucalyptus in space.
 
@Jefffrey Error: "Too much pizza": undefined concept.
7
 
@Nooble You're a truly believing and loyal person.
 
user1804599
 
5:37 PM
@πάνταῥεῖ (When he gets rich, I'll assasinate him with my bear-like abilities and take all of his money)
 
^ With your blank eyes? And spot the rings?
@Nooble " I'll assasinate him with my bear-like abilities" Koalas aren't bears you know?
 
user1804599
@Jefffrey "too" is never good.
 
user1804599
By definition.
 
@πάνταῥεῖ That's what they want you to think.
 
@Nooble I don't give a shit of them! I've got a brain on my very own ...
 
5:43 PM
@πάνταῥεῖ Then how would you know, unless you yourself are a koala?
 
I am returned
 
Welcome!
 
no you're not, only I am
 
You are welcome!
 
@Nooble I don't actually need to be a Koala, to know what Koalas are.
 
5:45 PM
@πάνταῥεῖ That's a strange concept.
 
^ Really? It's just the norm.
 
Ell
@πάνταῥεῖ hence bear-like
 
^
Weirdly, some bear foundations include koalas as a type of bear, even though koalas are marsupials.
 
@Ell What's bear-like, and how Koalas (which aren't actually bears), fit in?
 
Ell
he can't use his bear abilities because he's not a bear, so he'll use his bear-like abilities
ie not actual bear abilities, but abilities similar to those of a bear
 
@LightnessRacesinOrbit Maybe this sounds stupid but I thought because 3 << 1 = 6, the other way around too — Yassine Houssni 3 mins ago
 

« first day (1576 days earlier)      last day (3386 days later) »