« first day (1326 days earlier)      last day (3848 days later) » 

user1804599
15:00
You cannot undo assignment unless you know the semantics of the assignment operator.
Can i pass non-literal parameters to constexpr functions in C++14?
For example, could I pass a std::optional<T> to a constexpr function?
@rightfold No, but you could define it as copy-and-swap, or more generally, copy and move.
@gnzlbg Nope. constexpr functions must have at least some arguments that would be valid constant expressions- so all parameters must be literal types.
@DeadMG so why all the fuss about making std::optional constructors constexpr ?
pretty sure they have to be for it to be a literal type.
also std::optional isn't even in C++14 so you can't do it in C++14 anyway.
@DeadMG so if a type has constexpr constructors it is of literal type?
15:03
no, there are other requirements too, afaik
but that's one of them, at least.
@gnzlbg Yes you can.
std::optional is a literal type too.
im trying to make Eigen3 matrices literal types so that i can use them in constexpr functions and it is a mess
clang will only tell me that something is not a literal type but it won't tell me why
@rightfold Also, that's what I'm going to change my syntax to. Right now it's quite a bit worse.
Hey there, anyone PT??
wtf is PT
Xeo
Xeo
15:12
@DeadMG Feels like you're overusing := tbh :P
Porn Teacher xD
@Xeo Well, I considered using export(blah), like C# does.
but I remembered why I just decided to ditch that syntax for member initializers.
0
Q: is it possible for a function to accept a set of data types at given argument?

rsk82I know how to do it with any data type with template: template<typename T> T myFunc(T data) { ... } But is there a way to narrow the set of allowed types to for example int and char or std::string and std::wstring, so the compiler would throw an error when encountering not allowed argument typ...

what the heck, don't we have a suitable "possible duplicate" question related to that?
most are not phrased as generically I think
@DeadMG that answer..
15:16
@Xeo Frankly, I think it gets used a lot because "Initialize X thing with Y expression" is simply a common thing you need to do. I simply don't have five different syntaxes for it.
though maybe we should close this question. "is it possible" is certainly not a good format for SO
is it too broad, or not? that is the question; the answer by @DeadMG certainly indicates that it is.
Xeo
Xeo
@DeadMG t := SomeType still feels wrong to me, though
because SomeType is not an expression
15:20
@Xeo It very much is in Wide.
Xeo
Xeo
Meh. Suckage.
eh
the only thing C++ managed to do by having separate grammars for types and expressions is duplicate a whole bunch of stuff and make a huge mess.
Xeo
Xeo
I think I mentioned before that I don't particularly like the "types at the value level" very much
unifying them makes the grammar considerably simpler and the analyzer too.
@Xeo That stuff is mostly optional on top, really.
I decided I preferred it because I dislike the inconsistency of how int behaves w.r.t. int(5), say, compared to other callables.
user1804599
15:24
Oeps.
Xeo
Xeo
Well, I just feel really "meh" for t := Type, I guess
I've been thinking about disallowing it at the local variable level.
user1804599
Use := only for defining variables.
user1804599
It’s a contraction of x : T = expr.
Xeo
Xeo
He doesn't seem to like that vOv
15:26
x := expr fills all the same uses.
Xeo
Xeo
Btw, does x := T(expr) rely on optimisation to remove the useless copy / move?
oh god don't do that
that's an awful thing about C++
@Xeo You only need to use it if it's not useless.
but I do have a particular case in my analyzer which removes such things.
Xeo
Xeo
@DeadMG Generic code
again you people down vote for no good reason, the declaration is of course vector<Recipe> recipes; (is there another choice?) and the error is as I said: Invalid arguments. — Michael 1 min ago
There isn't another valid choice, but since you've come here complaining about a compilation error that doesn't really say all that much. You could have written std::vector<BOOBS> for all we know. — Lightness Races in Orbit 33 secs ago
@Xeo Don't really see what problem it solves there. If you need a T, take a T, if you don't need a T, don't force the expression into being a T.
Wait for the "Lounge is so sexist" flames
it really is :D
but, I do guarantee that it doesn't produce a move.
15:33
@LightnessRacesinOrbit Look here girl, stop being so sexist.
Xeo
Xeo
@DeadMG You need a T, but don't know if expr will yield a T or something compatible to it.
@TheForestAndTheTrees :D
@EtiennedeMartel it's the https. possibly also the "/photo/1" bit
@Xeo If you need a T, you should probably structure your code so that it's required to be a T.
@LightnessRacesinOrbit I tried without the https and the /photo/1
@DeadMG which would be easy if not for you deliberately designing the language to make it hard
OH GOD. NO. EMOJI VARIABLE NAMES #swift http://t.co/IYBS7ACeIj
oh no u didnt
15:35
I still hate one boxes.
well they hate you too
Xeo
Xeo
welp, time to head home
Hehe 'the comments becomes really out of context' well, yes, if you take the context as 'stop moaning and just fix my incomplete code and data while I sit back with my beer and wait'.

What is for vampires again? Silver bullets?
gotta feed muttkins
@Xeo Demanding royalties
15:43
Oh shit!
Hetzner has good timing on charging my CC
I thought I had 50€ more dammit
-2
Q: JSON form on JavaScript

user3703759I have a form that is inside a JavaScript Aplication but i want to change it for external Json. This my actual code var diagnoseForm = [ //Astenia { input_type: 'config', id: 'Astenia', lable: 'Astenia' } //,{ input_type: 'input', input_id: 'AsteniaOutro', input_...

sigh
OK, I fed Bailey than found out that Anne had already done it. I wonder why he's so err.. 'large'?
Now here's a surprise, I bought 2 beers with my card on Sunday but it's nowhere in the transaction log
15:59
@CatPlusPlus The banks seem to be acting strangely lately. 'I get email for every card transaction ' except for beer. That's actually a good trick if you can keep it up:)
It's not that I didn't get an email for it
It's that it's not locked and I still have this money
^ OK, good luck with it:) My windfall €356 has disappeared today:(
It's weird
Well the beer was awful so it's fitting
I better come up with a new PIN
Maybe I typed it wrong and nobody noticed though
idgi
This could actually happen if the keyboard had upside-down layout :v
16:04
Would you have got an email for that? It would have been rejected by the reader at the 'bad beer' pub, no?
You'd think it would, but I got the beer and they didn't say anything
vOv
Yeah, just another banking-system mystery.
Terminal could've been working in offline mode or something
IIRC, the terminal checks the PIN against the data on the card chip?
Dunno really
user1804599
16:06
checkPIN = const True
@MartinJames I remember at least one instance, where one paid by direct debit, but the transaction actually failed. That was at a time when many terminals had some problems due to Telekom effing things up.
The beer wasn't worth 0 either
@Zeta There does seem to be something strange going on. Cat has this bad-beer issue and, yesterday, a prepaid card of mine mysteriously gained a €356 credit whereas I was prety sure it had, like, €11 left. When I checked again this morning, the 'bonus' had gone:(
It must be the illuminati :tinfoil:
16:11
Again:( I hate the tinfoil too - it makes my head itch and my ears hot.
Use a big kettle. That even removes the unpleasant look of some things.
0
Q: C++ program gives me undefined reference

amon880I'm new to C++ programming, so I'm practicing with a simple class just to get used to syntax. Here there are my files: Vector.h #ifndef VECTOR_H_ #define VECTOR_H_ namespace myCode { template<typename T> class Vector{ private: T * elem; int sz; public: Vector(i...

I'm worried, shouldn't there be at least one "you need to put it into the header!!!!1111oneoneeleven" answer? Slow day today?
Well' I could use out stewpot - it's stainless but should work. I'll have to drill eye-holes:)
Just don't drill them while wearing the pot. That could lead to unpleasant results.
@Zeta Meh - my eyes are already shot from all the linked-list questions.
16:16
LO
you are probably best advised not to start with templates if you are new to c++ — sam 10 mins ago
You are best advised to stop posting about C++ forever
@MartinJames Depending on your aiming, you could hit something else. Or worse, you slip and accidentally hit your PC :O
Although that would actually be a hell of a slip.
@Zeta It would 'cos under the desk. I should take care 'cos already had to replace KB once this year.
http://stackoverflow.com/questions/24019644/c-program-gives-me-undefined-reference#comment37024224_24019644
Puppy giving advice on drug-taking:)
one druggie to another
Given the tinfoil thread, it's tempting to post something about black pots and kettles:)
16:23
I dunno
I don't think I have noticed any substantial change in my behaviour except lack of horrible sickness since I started taking them
You are happier. I can feel it.
Hm, I'm invited to Mario Kart 8 today. Has someone played it already? How does it compare to the rest of the games?
@Jefffrey Well, there is definitely the "No CRIPPLING STOMACH PAIN" thing.
Details.
@MartinJames There's probably a saying I don't know, is there?
16:27
0
A: Static Constexpr Assignment to Anonymous Enum

Filip Roséen - refpWho's to blame? gcc is inaccurately rejecting the snippet, it is legal according to the Standard (N3797). An unnamed enumeration has no linkage, but... [basic.link] has wording that describes when a type is "without linkage", without diving into the nasty details an unnamed enumeration count...

is this actually readable, or am I just confusing the shit out of people with those standard references and weird wordings?
I'm surprised that there isn't any (good) question/answer regarding the implications of types that has no linkage.
oh yeah
to add to my happiness, turns out I put on way less weight than I expected.
only about 15 pounds heavier since yay drugs
Xeo
Xeo
@DeadMG That's still quite a bit
@MartinJames Aw, what happened?
@Xeo There one day, gone the next:((
16:37
They corrected the error probably :v
Xeo
Xeo
Should've done something with it before they corrected it :D
They might have given me a chance to spend at least some of it:(
@DeadMG Have you read the weighting while on drugs?
It was probably just you being drunk
Or maybe it was the same thing that took away my 23km.
@Xeo I tried to get a 'mini-statement' from ATM to shield me agains lawsuits, but that facility was not available for my prepaid card:( If I could have got one, I would have been sorely tempted to get out as much cash as I could immediately.
16:39
Not worth it
Like the bank would care it was their error
@CatPlusPlus If they issue a statement that says it's my money, what can I do?
Tell them they made a mistake
@R.MartinhoFernandes "OK, Mr James, it seems that there is indeed some discrepancy on your card. While we sort out what happended, we are freezing all your accounts". "BTW, your profession is 'software engineer', yes? That's like 'hacker' isn't it?"
@DeadMG what does this do?
Anyway, my windfall is no more. I'll have to revert to spending my own money.
user3010322
16:50
Hey
user3010322
Does anyone know if Qt's framework is like
user3010322
move-enabled and all for C++11?
Qt5's been adding C++11 support, dunno how far it goes though
user3010322
Mmm.
user3010322
Because I'm looking at this codebase... and..
user3010322
16:53
I will need all the move-enabling std::unique_ptr'ing I can get my hands on...
user1804599
Ustream is borked.
Heh - best today. 'How can I decode some protocol that I have not posted':
http://stackoverflow.com/questions/24019710/c-program-to-store-and-forward-data
user3010322
;~;
user3010322
This is why I don't like stepping into other projects.
user3010322
Because I have to acknowledge that there are other people in the world and I have to program with them.
user3010322
16:59
When I'm the one doing all the programming, it can only be my fault and I can always fix it.
user1804599
I actually feel more sorry for those other people than for you.
@ThePhD Stop taking responsibility for bad code. You're letting the industry down :)
user1804599
Take responsibility for bad code written by anyone on your team, and fix it.
No that's dumb
user1804599
If you want to ship crap it’s indeed a very dumb thing to do.
17:01
@rightfold That's actually not an issue for me:)
Do code reviews and catch and fix bad code as it develops
user1804599
(Yeah I know, you don’t care.)
No, that's dumb, because you're wasting time
git blame and tell them to fucking fix it
@rightfold I have a team of one, so it's kinda unavoidable that I have to fix it.
If you spend time correcting others you're not spending time actually developing the damn thing
Do Code Reviews
user1804599
17:02
@CatPlusPlus You do.
@FilipRoséen-refp Did you downvote my answer here, out of revenge? :D Remember: I changed my down- to an upvote for your post yesterday! I'm tryin' to be nice!
This sounds like a good way to start a conversation
user1804599
That’s false.
Lounge<malice and revenge>
I was just about to write you a comment, I feel like your answer is incomplete especially with *"A workaround would be simply to define the member (but without the auto type-specifier!)"* (without showing a method how).

and the standard qoutes are a bit.. well, relevant but kinda misses the point
@Arcoth and honestly, I was gonna see how you'd react ;)
17:05
@FilipRoséen-refp My reaction is just gonna be a correction of what you mentioned. Thanks!
@Arcoth and now I can't remove it, stupid lock.. hold on, I'll fix it
Speaking of nice, fuck you.
@R.MartinhoFernandes Fuck you too.
Hmm.. sounds like <malice and revenge> was an understatement.
user3010322
@CatPlusPlus I'm the new developer here, I don't think everyone will take kindly to me just being like "HOLY SHIT ALL THIS CODE SUCKS CODE REVIEWS NAO. D:<"
17:06
@R.MartinhoFernandes May be the nicest thing a beautiful woman has ever done to with me... :-)
@FilipRoséen-refp Thanks! :) Let me upvote you right back.
Doesn't it make sense that when you hire a new developer and he has a new point of view, you consider it?
@Arcoth remember that I'm an ass.
Or is that new developer just an extra pair of hands?
@FilipRoséen-refp No, you just have a big ego, like me, and all the other guys here.
user3010322
17:08
I don't know the culture here.
Its' actually quite strange that the activity is called a 'code review' when it's usually the data that's fubar.
user3010322
I'm going to just work quietly in my branch for a while.
@Arcoth also remember that me being an ass has nothing to do with the quality of my posts.. all my posts are ducks.
Real team spirit
user3010322
u.u;
user3010322
17:08
It's only day 1!
Stack Overflow: all posts are dicks
All dicks are posts...
ducks, guys.. I wrote ducks
What a quacker!
what if someone flags all the messages containing dick as being flamazing offensive like a door that on quacks?
17:10
Fuck em
flamazing ... that should be a word
@FilipRoséen-refp Better than "burninate", IMO.
@FilipRoséen-refp It's going on the list.
@JerryCoffin are you saying that "burninate" is a word?
It's not?
17:12
@FilipRoséen-refp No (but it's often used as one on Meta).
All meta is butts
@melak47 Exports a constructor implemented in Wide for a C++ type.
talking about meta being butts is flamazingly butt
I like "burninate". It starts off as "burn" but then continues, which matches its meaning of burning until there's nothing left to burn.
Don't make me think too much about it.
you need a new word to categorize such words
17:14
@R.MartinhoFernandes lol
Wordoodles
@FilipRoséen-refp OK, I used it in a close-reason, so now it's official.
@Arcoth erhm, the "workaround" is now rejected by clang because of a bug
@FilipRoséen-refp Lol wut
@Arcoth yup, I got suprised too..
17:15
@FilipRoséen-refp But its completely fine. Well, yeah, A bug.
@Arcoth or well, I'm not sure it's a bug yet.. I'll search the standard after a smoke (you should do the same)
Don't encourage people to smoke here. This is a family-friendly room
@R.MartinhoFernandes ..and there's the risk of self-burnination.
You know, that actually makes more sense than I hoped for.
@FilipRoséen-refp Maybe another type is deduced. If you use constexpr decltype(a) foo<T>::value; It compiles fine... but i'll go out on a limb here and say its a bug,
17:17
@FilipRoséen-refp you said you would quit!
@Jefffrey I'm a horrible horrible person who actually believe that he might quit one day
@Arcoth could you remove your obsolete quote on my post?
-1
Q: Program Can't Run because MSVCR110.dll Missing but Visual Studio C++ Redistributable Package not installing

user3704066I'm trying to install the WampServer on my computer and keep getting an error saying: "Program cannot start because MSVCR110.dll file is missing from your computer". Every website I looked on told me to download the Visual C++ Redistributable for Visual Studio 2012 Update 4 from this link: http...

@Jefffrey he quits in between cigarettes.
@FilipRoséen-refp Ask a doctor for help.
@FilipRoséen-refp Replaced it by what i mentioned above.
17:20
on occassion, they actually do help people.
I would know
@DeadMG no doctor can make me quit smoking, I'm quite sure of it
speaking of which; smoke time.
I have e-fags now.
@FilipRoséen-refp My father smoked about a cigarette box a day, and about one and a half years ago he quit and never touched a cigarette since (Partly because his condition got worse and he really wanted to live)
I have an ~50-50 mix of 'Wild Berry' and 'Apple'.
@Arcoth I'm glad I'm not your father, I like smoking
@Arcoth IME lots of people want to quit or want to lose weight or whatever
but there's nothing like having a doctor tell you that if you don't quit your crippling stomach pain won't go away.
@DeadMG In primary school we did an experiment, where my teacher lit a cigarette and took a few pulls through cotton. Then he showed us the cotton, and we saw a lot of black disgusting stuff on it. That's where i swore myself never to smoke. (I also had asthma back then lol)
me too
that stuff is just, "You pay a bunch of money to die earlier".
at least stuffing your face provides a temporary pleasure in return and it's not that expensive
@DeadMG Oh - like buying the full version of VS?
17:30
rofl
@DeadMG My primary language is not english - does "stuffing your face" really mean to eat noisy? Don't believe the online dictionary
afaik it just means to eat a lot
^ what puppy says.
@BartekBanachewicz That OP is probably the most question banned user on the site. lol
17:50
b
5 more answers until that c++ gold badge, better spend them wisely.. this is it
@DeadMG BTW, if you are going to use or abuse something unpalatable, you should be happy and secure to talk about it and not hide behind anonymous generalisations. If you mean 'rightfold' say 'rightfold' :)
lol
I merely had the wrong window in focus when typing is all

« first day (1326 days earlier)      last day (3848 days later) »