« first day (2089 days earlier)      last day (3085 days later) » 
00:00 - 18:0018:00 - 00:00

user1804599
18:11
@fredoverflow lol
WTF:
struct A {
void friend a();
};
static int a = 0; // ERROR: a re-declared as a different kind of symbol
namespace {
static int a = 0; // OK
}
int main() {
a(); // ERROR: not found
}
user1804599
how's that wtf
user1804599
you declared a in the namespace of A, then redeclared it
user1804599
the third a is in a different namespace
int main() { a(); /* ERROR: not found */ }
I can't call a in the namespace of A
user1804599
18:16
you have to declare it in the namespace of A as a function returning void
user1804599
it must be a function
user1804599
you can't friend a non-function as a function
?
there is a function a in the namespace of A that is a friend of A
I cannot call a() from the namespace of a (this is to prevent namespace injection)
user1804599
struct A {
  void friend a(); // this friends ::a
};

static int a = 0; // this can't be a friend of A, hence error

namespace {
  static int a = 0; // OK; not in :: namespace
}
int main() {
  a(); // can't call this of course; the declaration of a was an ill-formed one
}
but then this "namespace injection prevention" still allows a to clash with another symbol of the same name in the namespace of a
why is

struct A {
void friend a() {}
};

illformed there
user1804599
18:18
Remember the -ferror-limit=1 rule: all errors except the first one are totally worthless.
lol no
user1804599
@gnzlbg it isn't
suppose the previous errors are not there
user1804599
static int a = 0; is ill-formed
user1804599
void friend a(); doesn't declare a, it friends a
18:19
void friend a() {} declares a
a friend declaration (without an accompanying non-friend declaration) only allows calls through ADL
user1804599
Yeah but void friend a() {} isn't in your code, and also can only be looked up through ADL
@LucDanton but it is still injected in the namespace of the type?
template<typename Sorter, typename... Args>
struct is_stable<container_aware_adapter<Sorter>(Args...)>:
    decltype(container_aware_adapter<Sorter>{}.operator()<true>(std::declval<Args&>()...))
{};
g++ is not happy and I'm not sure why.
Kek.
user1804599
18:21
Because g++ is sick of C++.
Where does it fail?
I says « expected ')' before '...' token » for some reason.
On the decltype line.
add a namespace and the 'definition not found' messages will show you that namespace
Ell
Ell
@Morwenn I swear your second < is unmatched
user1804599
18:26
no, it isn't
Ell
Ell
I might just be going blind
Or web chat is cutting it off
user1804599
@Morwenn There is no way to explicitly specify template arguments to overloaded operators
@Morwenn Can you throw a minimal repro on coliru at us?
@Griwes Minimal repro works :/
@Morwenn Then it's not a minimal repro! lol
Minimal repro means the minimal amount of code that reproduces the issue.
18:28
Yeah, I can't get a minimum failing repro.
There's always a minimal failing repro.
Sometimes it's the entire program. :P
Also your operator() looks very weird from that call site. :P
Also y u no std::declval (on the container_aware_fasjkflsda).
@Griwes Because I know for sure that one is default-constructible. And it doesn't work with std::declval either.
@Griwes Yeah, you can't pass explicit template parameters with the sugary syntax.
@Morwenn I know, I'm just saying it feels weird to have an operator() that's only callable without the sugar? :P Unless that argument is deduced, but then it's just... weird.
It's only for the deduction. It's a horrible trick to avoid having to duplicate even more code.
In an already horrible piece of code x)
Here is a « minimal » repro.
18:43
@ThePhD Oooh, of course, thanks :o
@EtiennedeMartel Holy shit, SGDQ has Kotor. SO MUCH HYPE!
It may be my most horrible lines of code so far :D
@Borgleader It already passed.
It was like 6 hours ago.
@ThePhD I know, but it was at like 5AM for me, I was leaving the house to go to work.
I'm just hyped that they played the game. I watched part of the vods during lunch.
It was amazeballs
19:22
@Bassie The epilogue was brilliant.
19:34
@Ven Does this have accompanying video?
@LucDanton indeed :/
19:52
Bllindfolded SGDQ run.
@StackedCrooked why do I keep doing this to myself, watching Shigatsu wa Kimi no Uso further?
@StackedCrooked poeple making this are fucked up
@StackedCrooked I think I'll go back to Nodame Cantabile :D (for my daily dose of shojuo / yosei)
20:49
@Ven Maybe, just maybe I might be at Japan Expo during the weekend in the end.
fuck websites that only make their images work with stupid parameters
21:11
Just sent out my 61st pull request for libc++‘s tests; finished fixing or categorizing all compiler errors and warnings with MSVC’s STL.
Made an "enhanced" brainf**k interpreter
61st. Nice.
And I can compile it into it by injecting it as a hardcoded string I guess too
Performance++;
Oh my, I just couldn't stop laughing.
wut
10/10 washing machine
How do people find these things
21:16
@Griwes 8 short of glory.
@Darkrifts I love when it starts to get out and dance around near the end.
@Griwes So true :D
You know how > and < work in brainf**k?
Increment and decrement global pointer.
I replaced them with S and R respectively as a synonym in EBF, and someone thought I was smoking something because R was for left :P
Especially when I said "S is for Slide"
in C#, 1 hour ago, by Darkrifts
S for Slide lol
21:31
hmmm found this on the BBC
The Department for International Department is expected to be criticised.
Criticism is the new black
This has just shown up in my FaceBook feed.
Made a brainf**k room now
@Darkrifts Why did you censor yourself there?
because
21:38
Made room for myself in my own bed. Bye.
mkay
The room used to call me on my ILFONE
Well, that video actually explains how inflation can cause multiverse in a way that I think I understand. :)
@wilx it should be censored
br**nfuck
@orlp Brainfuck.
22:06
@Borgleader
-8
Q: URGENT: code for fan controlled l

Idawhats the code for fan controlled speed in node.js? pls i need u guys help!!...

@Mysticial I assume you didn't get my ping since you don't click that red button? :P
@orlp Now I see it.
The problem is that I saw @sehe's ping, but not yours. And his came after yours so I didn't bother to look further down.
ewww macros
:)
22:23
@Mysticial haha
it's worse without the macros though
22:34
That things's got a couple layers too many extra levels of indirection for me to trace the dataflow.
@Mysticial the second part is not as important (I believe)
@Mysticial "mlapecaf".reverse();
@Mysticial oh-oh
I see now
since I updated pdqsort.h in the time between linking you and you seeing it
it pointed to the wrong location
this is the part I meant
which is an optimized version of for (int i = 0; i < block_size; ++i) if (!comp(*(first + (i + 0)), pivot)) offsets_l[num_l++] = i;
22:54
@Morwenn every fiber in me screams "that's so unsafe"
23:10
you are c++ programmer, should feel natrural to you
Now this was useful!
This reproducer is excellent. I love when people narrow down the problem to the essence. +10 if I could — sehe 5 secs ago
@wilx One of the few times I regret not actually going into science
@sehe I cannot imagine being a programmer with musics degree. You defy all logic!
:D
I don't have a degree :0
@ScarletAmaranth good idea :D
@Morwenn lol
23:42
Yay, new cubing times are up.
@R.MartinhoFernandes you got a did not finish on a 2x2?
@sehe I thought you did...
23:57
@orlp cubie popped
@R.MartinhoFernandes aww
00:00 - 18:0018:00 - 00:00

« first day (2089 days earlier)      last day (3085 days later) »