« first day (1503 days earlier)      last day (3449 days later) » 

6:06 PM
Ok back to work, I work 66% 16/24h
 
What is the correct way to define a tag type plus object in library header?
struct tag_t {}; constexpr tag_t tag{};
I've seen static constexpr, static const or even enum tag_t { tag };
 
if C++ weren't stupid then this would be obvious
in C++03 I just write struct tag_t {}; and let users pass Parent::tag_t().
 
enum tag_t { tag }; is the only one that I know will always work. But it has the drawback of being implicitly convertible to int.
Is this possible?
struct IP {
    static constexpr IP broadcast_ip = { 255, 255, 255, 255 };
    static constexpr IP null_ip = { 0, 0, 0, 0 };
    // methods and stuff...
    std::uint8_t bytes[4];
};
At work on older GCC i've eventually resorted to this:
struct IP {
    static IP broadcast_ip() { return IP{ 255, 255, 255, 255 }; };
    static IP null_ip() { return IP{ 0, 0, 0, 0 }; }
    // ...
};
 
Xeo
@StackedCrooked static constexpr tag_t{} tag{};
 
@Xeo Thanks.
@Xeo I've used that one a few times.
I remember someone claimed that you only need const. Like const tag_t tag{};
Maybe I should propose a language feature that enables functions to be called without ().
 
6:21 PM
rubby++
 
Or maybe we should first define the tag and then the tag_t
inline void tag() {}
using tag_t = decltype(tag);
Oh, wait, that won't have unique types.
 
user1804599
@StackedCrooked #define!
 
inline Identity<__LINE__> tag() { return {}; }
using tag_t = decltype(tag());
lol, so gross
 
user1804599
__COUNTER__
 
user1804599
Otherwise you cannot include them without risking clashes, or put multiple on the same line, or use #line.
 
6:26 PM
Is it possible to use Identity<__FUNCTION__, __LINE__> somehow?
@rightføld Yep, I'd use that one.
 
@StackedCrooked why is it so hard? when does struct tag_t {}; not "work"?
 
Sure .. :(
I was just having fun!
 
user1804599
iota in Go is nice.
 
user1804599
You can do e.g. const ( flag1 = 1 << iota; flag2; flag3 ) and flag2 will be 1 << 1 and flag3 will be 1 << 2.
 
How weird is that? I get back from my conference and the Lounge is discussing C++ issues.
 
6:28 PM
@rightføld Yeah, something like that could be useful in C++.
 
yeah, Go has two or three nice things, and also 4200 of crappy features
 
user1804599
I prefer sets over bitwise-or flags, but Go has no sets.
 
@StackedCrooked I was genuinely asking :P
 
^ that
 
user1804599
In C++ I'd take std::set<flag_t>.
 
6:29 PM
@MartinJames unissues tbh
 
user1804599
@Abyx s/features/lack of features/
 
__DATE__ // Nov 27 2014
__TIME__ // 18:29:28
 
@rightføld no, not really
 
user1804599
I need new shoes.
 
@LightnessRacesinOrbit The results were different between gcc 4.5, 4.6 and 4.7. I don't remember exactly how.
 
6:31 PM
@rightføld I mean e.g. it has multiple return values, but this feature prevents you from using composition - f(g())
 
@LightnessRacesinOrbit (!food) && (!sex)
 
user1804599
!(food || sex)!
 
@rightføld Fuck De Morgan.
 
@MartinJames That solves one problem
 
fucking hell
Life 2-0 Taeja at DH Winter?
 
6:34 PM
@LightnessRacesinOrbit Also, I want a curry, so there goes the other.
 
@Puppy Life 2-0 Puppy
 
user1804599
 
YOU CAN'T DO THAT
 
user1804599
Why not?
 
cos queen
sacrilege
 
user1804599
6:38 PM
I can do whatever the fuck I can do.
 
to the stocks with you
 
It's treason Johnny
 
lock 'im in the tower son
@rightføld True statement.
 
user1804599
The queen is overrated, like Queen.
 
user1804599
And Jesus and Muhammad.
 
6:45 PM
HOW DARE YOU
@LightnessRacesinOrbit google style guide suggest to use a trail (google-styleguide.googlecode.com/svn/trunk/…) — Tomás Badan 8 mins ago
oh well if the google style guide says to do it...
 
I literally can't think for myself
 
According to whom?
 
Just checking
Lightness thinks I'm a bad programmer. :( — Benjamin Lindley 2 hours ago
rut roh
 
There are so many new things in HTML
 
6:49 PM
not really
 
Shadow DOM is not in HTML
it's not even a standard yet
 
whatever
 
also they should have called it Hack Nodes
because all it does is give you low-level access to hidden shit inside a browser's predefined rendering for DOM nodes
so you can hack around limitations
 
LOL
LOOOOL
... no explanation of the downvote? — Columbo 2 mins ago
Not until you explain your idiotic comment on my post. — ooga 1 min ago
Seriously?
@LightnessRacesinOrbit Do I have to cope with these kind of idiots? Don't believe it
 
6:57 PM
lol you post on so
so yes
 
@CatPlusPlus Cat, help me
My addiction doesn't let me go
 
user1804599
Doesn't the standard guarantee a-z and A-Z are contiguous?
 
yes
 
user1804599
6:59 PM
By just saying that's guaranteed.
 
by specifying it
like they usually do
 
But what about my EBCDIC???
 
user1804599
Not allowed.
 
the Standard allows it as code input, with the whole trigraph thing, but I'm not sure if it's allowed as the execution character set.
 
only numbers should be contiguous
 
7:01 PM
@Columbo loool
@rightføld No.
 
Quote plx
 
depending on contiguity is for fail 1980s string handling programs
 
> (C++11 2.3/3) The basic execution character set and the basic execution wide-character set shall each contain all the
members of the basic source character set, plus control characters representing alert, backspace, and carriage
return, plus a null character (respectively, null wide character), whose representation has all zero bits. For
each basic execution character set, the values of the members shall be non-negative and distinct from one
another. In both the source and execution basic character sets, the value of each character after 0 in the
 
shut up puppy
 
@rightføld EBCDIC?
 
user1804599
7:02 PM
Only use Unicode internally problem solved.
 
hard to do in 1980
 
user1804599
It's 2014 who gives a shit about 1980.
 
@rightføld What problem?
 
not me
 
user1804599
a-z and A-Z not being contiguous.
 
7:03 PM
@rightføld they are.
This is standard nuances.
You can wipe my ass with them.
Hold on, I forgot you're a woman: pardon that impertinent comment :o)
 
user1804599
Also PCRE ftw.
 
@Columbo that's sexist
 
user1804599
@Columbo What? I don't think most men like wiping other people's asses either.
 
@rightføld It's about the rudeness. I didn't mean it.
 
user1804599
I don't see where you were rude.
 
7:05 PM
@rightføld I have a false perception of women.
Anyway, does your comment get marked as edited even if you didn't change the content
 
user1804599
I tend to have problems with empathy.
 
@rightføld Googles empathy
 
user1804599
Maybe that's why I didn't perceive your message as being rude.
 
Ah, is empathy something like authenticity?
 
user1804599
Lack of empathy has major advantages but can cause really awkward situations as well.
 
7:06 PM
Erm, the opposite I mean
AFAIR authentic persons have similar social problems.
 
user1804599
Do you mean autistic people?
 
@rightføld lol
yes
 
@Columbo probably. try it
 
German: "Authentisch"
 
user1804599
All people that aren't clones are authentic.
 
7:07 PM
@Columbo really?
@rightføld not really
 
@LightnessRacesinOrbit I did. With that very comment.
 
@Columbo oh, chat messages. not comments.
 
@LightnessRacesinOrbit head -> table
Yes
 
@LightnessRacesinOrbit Agreed. — ooga 1 min ago
looks like it's over
 
@LightnessRacesinOrbit "It"?
 
7:08 PM
your fight with ooga
 
@LightnessRacesinOrbit Ah, thanks for helping a man in need
I'll remember you next time I'm in need
 
@Columbo What would rightfold being a woman have to do with you being rude?
 
@Puppy I don't know
... anymore
 
unless you want to imply that you would not be rude to a woman if you would be to a man.
 
user1804599
7:09 PM
pro tip don't use deodorant after shaving armpits
 
CALL THE MODS
 
user1804599
IT HURTS
 
which is DEFINITELY sexist.
womanly rightfold, btw ^^
 
sure, sexist
 
I thought women were more easily offended in general.
10
 
7:10 PM
or self-preservation
 
unsure whether to flag or star.
ah, screw it
 
user1804599
I am never offended.
 
> You cannot counterflag your own message
 
Puppy flagging things. This is .... a startlingly shining example of Lounge hypocrisy.
 
7:10 PM
LOOL
 
nvm
 
TIL it's probably been Puppy flagging shit the entire time /cc @Mysticial
 
evening
 
night
 
user1804599
hi macro
 
7:12 PM
Is it correct to say "To procure a binary search"?
 
@LightnessRacesinOrbit the biggest hypocrite here is you.
 
user1804599
Seems silly.
 
user1804599
Where do you want to say that?
 
@rightføld On SO :o)
I want to sound eloquent.
 
not unless you want to buy a binary search.
 
user1804599
7:13 PM
You can s/procure/commence/. :v
 
user1804599
Or s/procure/perform/.
 
yo rubbery
 
user1804599
Hallå, Tony.
 
what do?
 
user1804599
7:17 PM
fap
 
boring
 
user1804599
Doe een boring naar olie.
 
thats a terripun
 
@Columbo sounds like a disease
 
@rightføld It sounds too wrong now.
 
7:19 PM
@rightføld no thanks
 
user1804599
@TonyTheLion write a program in Clojure or Elixir.
 
user1804599
@TonyTheLion Bitch, not lion.
 
@rightføld wut... someone flagged that....
 
@TonyTheLion She doesn't have any of that anyway
 
@TonyTheLion contriboot to Wide
@Columbo She does.
 
7:19 PM
@Puppy Did she cut...?
 
@Columbo She definitely does
 
user1804599
@Columbo I have more balls than about 50% of people.
 
@Puppy Narrow
 
@rightføld Do- Do you own a football?
 
user1804599
I have more balls than Armstrong and I won the Tour de France equally many times as he did!
 
7:20 PM
yea right
 
so did the vast majority of the human race.
 
user1804599
@TGMCians why would anyone do that :v
 
I burped
 
Hold on, is this some kind of double reverse bullshitting? Is rightfold a guy in the end and just pretended to be a girl as a sidejoke?
 
user1804599
@TonyTheLion I do that at work a lot.
 
7:21 PM
what do you really care about rightfold's gender?
 
user1804599
Apr 6 at 22:14, by rightfold
I’m not sure of my gender.
 
check your privileges
 
user1804599
@TonyTheLion ok lemme check
 
@Puppy Do you really care about me caring about stuff?
 
7:22 PM
inb4 @LightnessRacesinOrbit
 
user1804599
> Next privilege
access to moderator tools
9,143/10,000
 
got it
 
user1804599
I wonder how long it will take for me to get to 22k again.
 
@Columbo Only insofar as you make noise about it in here.
 
@rightføld You know I can't resist the temptation to ask.
 
7:23 PM
he does?
 
@Puppy Plonk me then?
 
user1804599
@Columbo To ask what?
 
nah
then everyone else can still see it
 
@rightføld What 22k you're referring to
 
7:24 PM
plonking isn't a very effective tool
 
user1804599
I had an account before with 22krep.
 
@rightføld Yeah, I kinda got that. What one was it? Does it still exist?
 
@Puppy its effective to the degree I don't have to see your shit when I plonk you :P
 
user1804599
No.
 
@rightføld Did it get deleted for too many flagged chat messages?
 
user1804599
7:25 PM
But I did ask a massively popular question.
 
@Columbo He ragequit one fine day
 
@TonyTheLion So basically, not particularly effective at all.
 
@MartinJames: Fed Bailey yet?
 
@TonyTheLion She. Okay, fuck y'all. rightfold is a guy.
 
7:25 PM
not really.
 
@Puppy I haven't seem him in here for a while
 
he has a starred message timestamped one hour ago
lol
 
hahaah
 
Hey guys what's up?
Long time no see.
 
7:26 PM
@rightføld What are you, you monster
 
Nor C. Been using Scala lately.
 
ewww C
What you been up to Poly?
 
everyone's life is immeasurably improved by not using C.
 
Being banned a lot.
 
too much time on 4chan?
 
7:27 PM
4chan is fun.
 
my money's on reddit
 
@Puppy I can't necessarily disagree with you
 
but I say that like there's a tremendous degree of difference
 
@Abyx Apparently not.
 
there's "Crappy image spam" and then there's "Crappy image spam"
 
7:28 PM
reddit has turned into a shit place
 
I don't recall it ever being different
it's predecessors were the same
 
Slashdot and Digg and all those places
 
@Puppy That is, everyone's life is also immeasurably improved by not doing anything?
 
you just run into the lowest common denominator
and its apparently pretty awful
 
7:29 PM
/r/imgoingtohellforthis stays funny.
 
@Columbo You could just do something in C++ or C# instead.
 
Find more fun subreddits.
 
@TonyTheLion What's surprising about the LCD is not how bad it is, I've always known that horrible people existed. It's that there are so goddamn many of them.
 
@Puppy What is C's advantage, really? slightly increased portability is the only aspect I recall.
 
@Columbo None, really.
 
7:30 PM
@Puppy I'll take your word for it.,
 
@Columbo It's got a shorter name, so less typing in documentation.
 
you should do
 
It's easier to get onto embedded shit because good luck finding a working C++ compiler for some of those
 
@LightnessRacesinOrbit The documentation has to call the full standard name doesn't it
Well, it doesn't have to
 
I can't think of anything attractive about C
 
7:31 PM
But neither does it have to call C++ C++. It could call it Ç.
 
C++ has some features which are nice, like erm... erm...
...
donno
erm...
 
Exceptions?
lol
 
Exceptionally bad
 
not when you're Google, no
my chair is squeeky
need some oil or something
 
@Columbo still shorter
 
7:34 PM
@LightnessRacesinOrbit Pics or it didn't happen
 
So what is this thanksgiving gimmick? I know it has something to do with Turkey.
 
google it
 
> the expression of gratitude, especially to God
lol God
yup gimmick
 
@PolymorphicPotato beats me mate
@PolymorphicPotato it's a day on which the entire population of the US beats me
 
They also beat each other, e.g. in Ferguson.
 
7:42 PM
:)
Darwin would be proud.
 
Friday again tomo, weeee
 
is std::memory_order_relaxed only different from std::memory_order_seq_cst on multi CPU systems?
what's wrong?
 
your mom
Where does ===========================================================v come from?
Oh sed lol.
 
It's just a little clearer.
 
7:49 PM
n is local
 
@PolymorphicPotato wtftld
this was such a poor decision
twats
 
@StackedCrooked I don't see why it should do anything atomically at all.
No other thread can see n anyway.
 
Error	1	error C4996: 'ctime': This function or variable may be unsafe. Consider using ctime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
I like how that's an error
 
It's a local non-reference not passed anywhere. :v
 

« first day (1503 days earlier)      last day (3449 days later) »