« first day (1987 days earlier)      last day (2953 days later) » 

7:01 PM
@Xeo Kinky.
 
@Xeo dat music be pretty good
 
What's that about nazis again
 
@AndyProwl Isn't there going to be a Ranges TS with C++17?
 
I guess
 
@AndyProwl bjarne should go and make his own C++, with blackjack and hookers!
 
user1804599
7:16 PM
Why does American Kerry speak Dutch with a German accent?
 
@melak47 Bjarne needs to help push James Touton's paper so I don't have to do cto<decltype(&shit::fuck), &shit::fuck>()
 
hm, would this then work? template<auto Thing, typename T = decltype(Thing)> :D
 
that paper did well in EWG, 10 | 8 | 3 | 1 | 0
 
7:33 PM
@Cubbi But it's not passed in time for C++17 andlast I checked the author was aiting on feedback from Sutton about whether or not they wanted to do something dumb
and make auto an alias for typename in templates as "the least constrained concept".
Which I VEHEMENTLY oppose.
 
Xeo
@CatPlusPlus Somebody developing basically the same game I had in mind and been slowly working on. Literally Hitler!
 
@ThePhD Blech, MFPs. Fuck that shit
 
@melak47 Yes.
@Puppy Necessary. vOv
I also need it for not-member-function-pointers, too.
 
why?
 
Compile-time transport through an FFI.
 
7:40 PM
I don't see what that has to do with MFPs.
 
Which eliminates all of the virtual stuff and API function calls.
 
but but
didn't we get constexpr lambdas? and what about allowing all constexpr literal types as non-type template arguments?
 
just take a function type, then default-construct and call.
 
shouldn't that solve this? :D
 
no MFPs, no bullshit.
 
7:41 PM
@melak47 Still have to decltype it, IIRC?
@Puppy That requires someone to hand-write a wrapper.
 
you could probably generate one for MFPs.
but more seriously, before you need to wrap an MFP in the first place, you need to take an MFP in the first place, which is the source of the problem here.
just don't ever deal with MFPs; no wrapping needed.
 
sbi
@sehe I must assume that you are implying something with this statement. What, however, it is you are implying totally escapes me.
@JerryCoffin Ack.
 
@Puppy Well, the point still stands for regular functions.
 
sbi
@MadaraUchiha You fail to take into account that Twitter is not free and unfiltered.
 
@ThePhD I mean getting rid of the MFP
 
7:44 PM
@melak47 You mean cto<my_constexpr_class( my_func )> ?
 
sbi
Uh oh. Nothing's happened on the starboard since I left. Must have been a really exiting day out here.
 
Is... that allowed in C++11 constexpr?
Time to test on coliru!
 
I mean sol_func<[](const Thing& thing) { return thing.foo(); }> - but this is probably still gonna be a non-evaluated context for lambdas, right? :(((
 
Xeo
@melak47 that's just impossible
 
:D
 
7:45 PM
@ThePhD Not at all. The default-constructed-function-object works for, well, all callable things.
 
Yeah, but I still have to tell it which function to call.
 
@sbi or a very entering night (depending on your timezone)
 
sbi
@Borgleader Well, it it is depending on my timezone (as you seem to imply), then it was the day.
 
ah fucknuggets
did a major refactor and all my integration tests pass.
obviously Wide is not tested very thoroughly
 
You just expect it to break everytime?
 
7:48 PM
@sbi tbh, i was more interested in highlighting a typo :P
 
it bloody well should do
 
(through punnery of dubious quality)
 
I am a lowly meatbag and make mistakes all the time
10
 
sbi
@Borgleader Yawn.
 
Hello, does anyone know about the current status of Clang server/Clang Daemon/clangd? It was proposed several years ago, but I can't find any recent information. Has it been renamed or abandoned?
 
7:52 PM
no.
 
@goldwin-es latest seems to be from 2012
 
@набиячлэвэлиь Thanks!
 
Hello guys. Do you know any tool that can parse C++ files and allow me to for example easily jump to structure and type definitions, function and variables? Which also have GUI interface. Something similar to VS IntelliSense but without the need to create a project and to compile it.
 
sbi
No.
 
That's sad :(.
 
sbi
7:56 PM
No, it isn't. I'm totally fine with not knowing this.
 
.... for me
 
@FISOCPP you don't need to compile it :p
 
sbi
@FISOCPP Still. I'm also totally fine with not knowing this for you.
 
@FISOCPP Why VS is not an option for you?
 
Well I have left with the impression I must.
 
7:57 PM
have a look at this: valloric.github.io/YouCompleteMe
> YCM also provides semantic IDE-like features in a number of languages, including:
>
> * finding declarations, definitions, usages, etc. of identifiers,
 
@melak47 Thanks for the link - I'll look at it.
 
this doesn't have it's own GUI though, usually you use it from an editor like sublime text, atom, vim I think, and whatnot
 
@melak47 Well I'm looking for something working on windows.
 
sublime text, atom, vim etc. don't work on windows? since when
 
@melak47 I have no idea :P
OK - this really look promising - thanks again for the info.
 
8:05 PM
Also, I don't think you need to follow the entire installation instructions there. You can find ready-made plugins/extensions for e.g. atom
 
8:19 PM
Ugh
Why can't I constexpr arguments.
This is fucking dumb. >:l
 
Something similar to VS IntelliSense? cat /dev/random
 
q-q why me
 
I think I have to use a macro.
There's just no escaping it.
 
@AndyProwl Thanks, but I don't have any additional Java puzzlers prepared right now. The next video is probably going to be an improved rehash of arrays and pointers in C. I'm somewhat dissatisfied with the old videos on the topic.
 
8:29 PM
Wait, that still doesn't solve my problem.
Fffffffffffffffffffffffffffffffffffffffffuck
C++ makes me so sad.
 
:)
 
WTB constexpr arguments.
 
@ThePhD Just adjust your expectations lower! :)
 
@wilx Never.
I'd sooner slit my own throat.
 
8:37 PM
afternoon
has anyone made a custom reporter for catch?
 
@jaggedSpire yes, hello
@jaggedSpire What do you need from it?
 
I want to syntax-highlight test results in sublime's output view, and since I use windows the regular output doesn't contain the ANSI color-codes I could otherwise use
 
@jaggedSpire Oh god, that one
 
yeeeaaaah
 
Phil said he was not going to implement ANSI colors for Windows
But I might implement it sometime soon
 
8:41 PM
meh, I might decide writing them is fun, and do want to write my own. I was mostly wondering if anyone'd found any gotchas for writing them
 
@Borgleader That was fast. Didn't Intel literally like just acquire them?
 
@jaggedSpire Better not do that, rather fix colourers
 
@Mysticial Seems to be a fairly recent acquisition yes.
 
@Nooble Do you even come around or are you too busy smashing poon?
 
@Borgleader I'd be interested to see how to actually program that FPGA. And whether it can be reprogrammed.
Not quite my area of expertise.
 
8:48 PM
@набиячлэвэлиь is the reporter implementation secretly an eldritch horror?
 
@jaggedSpire No, IIRC
 
@Mysticial Yeah, I have no idea how that works either, I was hoping you did ;)
 
I mean at a glance it seems reasonable
 
@jaggedSpire Try defining CATCH_CONFIG_COLOUR_ANSI
 
ooooh okay
 
8:52 PM
I'm looking through the code, that seems to do the job
@jaggedSpire 'd it work?
 
in every include file or just the one that generates main?
 
Not sure, try one and then all of them
 
aight
 
Phil really likes pointers
 
wtf is phil
 
8:54 PM
@Borgleader philsquared
 
oh excellent that does work
thanks a bunch
 
@jaggedSpire On one or all?
 
one, looks like
 
yep
didn't see it right away because sublime's output window apparently just cleans the ANSI color codes but it's visible in console
 
thanks
 
@набиячлэвэлиь CATCH is filled with them.
Dynamic casts too.
You can't turn off RTTI and shit.
Otherwise the framework will just snap.
 
Eh. After today's adventures with broken builds because some subdependency of a dependency of one of our Node.js projects has published a new version, which happened to be incompatible with the node version we are using, I'm starting to think that it's good that C++ does not have an easy to use package manager.
Also there's an is-positive-integer npm module, which itself depends on is-integer and is-positive; is-positive depends on is-finite, which in turn depends on is-nan. Or something like that.
I'd prefer we keep people doing shit like that out of C++ by not providing them a simple way to distribute shit like that :/
 
what's really funny is the version.
is-positive-integer v3.1.0 - wtf did v1,2,3 do?!
 
9:09 PM
@ThePhD Good.
 
@Puppy Exactly.
Probably did something terribly broken.
It's not even the leftpad shit that makes node.js unusable for serious projects :/
 
it was fuckin' funny though
 
It's the fact that you can run a build twice and get totally different results.
 
Someone has >= instead of ^ in their package.json (which is exactly the case we had today), and we use a package like that, then someone publishes a new, incompatible version of their package that the package we use depends on.
Boom!
Borken build.
 
9:12 PM
Yellow
 
npm improvement on header files though
 
Sure, there are some tools that let you forcibly set all the versions throughout the dependency tree to whatever version the current one is...
...but as far as I can tell they are at least hacky.
I had to update xml2js in like 20 different package.jsons today to fix what we had.
(Directly or indirectly by bumping versions of other packages that I bumped it in; and across multiple branches.)
This is nonsense.
No actual commercial product should be possible to be broken at build stage by some random guy on the internet doing something.
 
well if you depend on the code of random guys on the Internet, it seems logical that their fuckups can fuck you up
 
It's hard not to when writing code for that environment.
 
hey
does anyone have some experience with aws
 
9:17 PM
no.
 
real basic question tho :'
ok np
 
@WilliamPaul IRTA "ass"
 
@Griwes Wouldn't dependencies be a DAG rather than a tree? After all, you could have two dependencies that depend on the same thing.
 
@Puppy That's not how npm works by default.
 
amazon web services
 
9:20 PM
And at the point anyone considered the default behavior to be wrong, the damage was already done.
@Puppy By default, all the dependencies of the main package are installed, and then you recurse into each one of them with the same process.
There's ways to change that, but eh, we'd end up with the same problem either way (and a heap of other problems, due to version mismatches resulting in bad behavior etc.).
 
user1804599
9:39 PM
WTF does "nazdrowje" mean? I cannot find the definition anywhere.
 
@Zoidberg "na zdrowie" is kinda like "bless you" after sneezing
 
9:52 PM
When I attempt this fix, it says the an Array does not have a definiton for OfType, anyone have an idea? stackoverflow.com/a/23997079/185672
@WilliamPaul What is the question briefly?
 
@Phil How is this relevant to C++?
 
hahahahaha
omgosh
i thought this was C#
woops
 
QUEEEESSTIIIOOOON
Can you have a variadic pack
 
and then have a variadic list of elements?
like
template <typename... Args, Args... values> ?
 
10:02 PM
Try it
 
here goes.
Nope.
Another thing template <auto X> will fix.
When it gets implemented.
Eventually.
....
Does C++17 fold expressions
 
yes
You also a word
 
even handle typename F, F v... as some kind of pack?
Or do I have to figure out a constexpr class for this?
 
10:31 PM
Fuck me sideways, C++ is dumb.
 
litb!
litb why is C++ so mean
 
@JohannesSchaub-litb s/hello all/guys/ :P
 
10:47 PM
hello guys
i'm new to C++ and i hava an issue trying to get an object propriety . if any one could help , that would be nice .
here is the tiny code
#include <iostream>

using namespace std;
class point
{
private:
int X;
int Y;
public:

point(int x, int y);
int R;
~point();
int abscisse(); //Méthode retournant l'abscisse
int ordonnee(); // Méthode retournant l'ordonnée
};

point::point(int x, int y) {
int X = x;
int Y = y;
int R = 2000;

}

int point::abscisse() {
return X;
}


int point::ordonnee() {
return Y;
}

point::~point(void) {

}

int main(){

point MyPoint(22,55);
cout << MyPoint.abscisse() << MyPoint.ordonnee() << endl;

system("PAUSE");
 
cleanup on aisle three
 
@набиячлэвэлиь sorry ?
 
You should be
 
ah i should not oost code like this
sorry
 
I am semi-drunk after 2/3 of Chillean Carmenere red wine.
I want more but I only have some french Merlot.
 
10:54 PM
@набиячлэвэлиь sorry i can not clean
@набиячлэвэлиь how i'm supposed to post code here ?
 
You're not
You're supposed to go away
 
@набиячлэвэлиь why ?
 
just because i'm a newbie , man ?
 
@Rizerzero This is not a place to ask questions like that. Go to SO proper to ask such questions.
 
10:57 PM
ok , clear
 
This is a chat where we discuss both mundane and world influencing stuff.
Mmm, Merlot is not Carmenere, definitely.
 
yeah , you"re sober
@набиячлэвэлиь NO
 
YES
And also because you're french
 
11:02 PM
@набиячлэвэлиь first of all i'm not french and what's wrong with being french
 
i have a french ip , i could be using a proxy , my so smart friend
 
But do you like chocolate?
 
i like c ++
 
FTR, we can't see your IP.
 
11:08 PM
Your Frenchness would be obvious from your punctuation placement, if your illiteracy wasn't so obvious
 
oh , you're not that smart
 
He's done it again, the absolute madman
It's a gift illiterate French guy that just keeps on giving
 
no more time to waste
 
Ven
Fighting against a newbie yet again?
Hubert is rolling in his grave.
 
No, laffoing at him
 
Ven
11:17 PM
@VeronikaPrüssels JEANNE, AU SECOURS
 
11:37 PM
@R.MartinhoFernandes Oh yes :3
especially those fancy ones (coffee cream is one of muh favorites)
 
Which std algorithm could be used to escape certain values in a std::string. For example say I want to escape newlines with a backslash.
 
(im well aware you werent expecting a serious answer butt fuck it)
@StackedCrooked Off hand i dont think any are particularly suitable
but im no expert
 
I think I'll need a loop that does std::find and std::string::insert.
Ah well, boost::replace_all I suppose.
 
@StackedCrooked std::transform()?
 
The problem is that I'm inserting new items into the string. Which can invalidate iterators and stuff.
 
11:43 PM
while-replace
 
lol #birdiesanders is a thing
 
// probably this is it
for (;;) {
    auto pos = s.find("\n");
    if (pos == std::string::npos) break;
    s.replace(pos, 1, "\\n");
}
 
@StackedCrooked Re-use the result of find to avoid re-scanning the same range :)
 
for(auto pos = s.find("\n"); pos = s.find("\n"); pos != std::string::npos)
  s.replace(pos, 1, "\\n");
 
@Borgleader right
@набиячлэвэлиь nifty
 
11:47 PM
@набиячлэвэлиь oh thats pretty nice
 
It might be an off-by-one
 
Xeo
@набиячлэвэлиь loop condition and advancement flipped here
 
right
2late4cpp
 
@Xeo You changed jobs recently yes?
 
Xeo
Not yet, officially
Contract says July
 
11:50 PM
Ah
 

« first day (1987 days earlier)      last day (2953 days later) »