« first day (971 days earlier)      last day (3978 days later) » 

11:03 AM
@DeadMG No repro ideone.com/YMjV0R
 
yeah
turns out that I had a private struct { T x; T y; }
and of course, the struct's members default to private.
I also hate how it formats my code to a completely different indentation than the one I want.
 
@DeadMG That's configurable. At least in older VSs.
 
ack
and of course, in C++, if you have optional<T> var; var = T(); then it works.
 
Good news, bad news. I'm in biergarten in Tiergarten and it's hot and sunny. OTOH, I left my phone on and customers have tracked me down. "Why are you on vacation when we have a..z issues?". Fuck it, I'm having another hefeweitzen..
 
11:08 AM
What does this mean - "This language makes it easy to shoot yourself in the foot" ?
 
oh, but T is (completely pointlessly) a reference type anyway, which I forgot, so never mind Nullable
 
C++: Batteries Bullets included.
@DeadMG Can't even use Nullable on those.
 
@R.MartinhoFernandes This being what VS just told me.
I'm about to discover that I can't overload operator(), right?
 
@DeadMG welll, kiiiiind of
oh, operator(), yeah, you can't
 
No. You can just make lambdas (capturing local variables instead of having fields), but no polymorphic callables.
 
11:10 AM
thought that was operator[] for a moment
What are you trying to do though? X-Y problem and all that :)
 
I'm exposing my lexer to C#
 
guys I want learn more about pointers. to access functions and more... maybe there is somewhere good article? I googled but that pointing me to suicide.
 
of course, my C++ design uses a callable, but obviously .NET people were too dumb to think of something as useful
 
I have no idea what you want there, but function types are perfectly serviceable as long as it's not a polymorphic callable.
 
IOW, as long as the special magic language primitives cover absolutely every use case, ever.
 
11:13 AM
Especially now that they are covariant and contravariant in C# 4.
 
@R.MartinhoFernandes funky
 
@DeadMG Your use case boils down to "I will cry if I don't get this syntax"
2
 
wat, I have to derive all my exceptions from System.Exception? when did that happen?
 
@R.MartinhoFernandes Ye.
Well, they accept traversables technically.
 
@DeadMG ... when .NET was created?
 
11:15 AM
@R.MartinhoFernandes Well I admit that in this particular example, I really have no need of any particular syntax, but I can't say that in general, it's not an extremely useful feature in C++.
 
@DeadMG double negation
also, sure, it's a useful feature when working around C++'s inability to treat functions as first-class citizens
 
nah, most (if not basically all) of the function types I use are user-defined (inc. lambdas) and I wouldn't have much use for regular functions since they cannot be stateful
I do the same thing in Wide and Wide can pass overload sets as full function objects
 
the fuck is all this?
 
14 mins ago, by DeadMG
I'm exposing my lexer to C#
 
I'm talking about all the x seconds later... statements on my screen
 
Xeo
11:27 AM
lol
 
@BartekBanachewicz haha
 
How do you call the items in a container? Elements? Or just objects?
 
Xeo
elements, usually
 
@TonyTheLion haha, your chat broke.
@StackedCrooked Thingies!
 
@DeadMG functions can be stateful if they're not limited by C++
 
11:32 AM
@R.MartinhoFernandes seems like
 
@jalf We have those- lambdas
 
@DeadMG Yes. In C++, we have one little creaky special case of functions, which is allowed to be stateful. In other languages, the distinction isn't all that meaningful
 
sbi
> We don't say "offline" anymore, it's now "connectively challenged". — Andreas Krennmair
11
 
Anyway, you still haven't described to us what it is you need, so I'm going to go ahead with my assumption that you're just whining for sympathy and are intent on solving an X-Y problem of some sort. :)
 
true
but in C#, they have pretty much the same deal- either you have a member function, whose state can only be members, a static function with no state, or a lambda.
20 mins ago, by DeadMG
@R.MartinhoFernandes Well I admit that in this particular example, I really have no need of any particular syntax, but I can't say that in general, it's not an extremely useful feature in C++.
 
11:35 AM
0
Q: Calling std::any_of with conditional operator on lambda gives unexpected results

Coder_DanHere is some code I recently wrote in VS2012: ///<summary>Lambda: Returns true if the field is significant within a baseline context</summary> const auto IsSignificantBaselineField = [](const field_info & field)->bool { //Some lines removed here! return something; ...

Can someone confirm that this compiles in VS2012?
 
so yes, I was just arguing that it was a useful feature, not that I currently require it
 
@Luc :( I'm starting to reluctantly agree that start is a necessary evil :(
@LucDanton Hmm, that makes them polymorphic, actually.
Just not ad-hoc-polymorphic.
 
sbi
@thecoshman I refuse to take jobs in environments as numbing as what you seem to be trapped in. When I ended up in something that was about 10% of what you described, I went looking for a new job right away. (I once started on a new job 10 months after I started the one before that.)
@Xeo Yeah, that's true. In fact, I have two of those now, I think. :)
@TonyTheLion I wouldn't exactly call that "luck". For one, it's easier for me because I can offer a wealth of experience. But then there's also the fact that I do not hesitate to turn down even generous offers if I suspect to end up in a shit job, and left ASAP every time I somehow ended up in something suboptimal.
 
Xeo
@sbi Cool.
 
sbi
@Xeo Yeah. Except: Who wants to go back?
 
Xeo
11:42 AM
Heh
 
I'm going to be breaking away from Lounge and SO for a while (weeks to months). I need to do some entirely non-programming related things outside of work for a bit, so that I can hopefully find my joy in it again when actually being at work.
4
 
what's new with variadic templates in C++14? The Clang status page has it listed as one of the C++14 features
 
@jalf Something VS will have full of bugs by 2017, probably.
:P
@jalf doesn't it link to a paper?
 
@R.MartinhoFernandes yeah, I just wondered if any of you knew off hand
like, the headline version :)
but I guess I'll just look at the paper
@TonyTheLion ooh, have fun with that. Good luck!
 
"VS2017 CTP with new variadic templates!" looks like a headline to me :P
 
11:45 AM
OK guys, Bye!
 
sbi
@TonyTheLion If you want to be a programmer, then you will have to have fun in programming. I am the last one to deny that you'll need to do other things as well — but if your job sucks, no amount of doing other things will change that.
 
@TonyTheLion Viel Spaß!
 
Xeo
@jalf Psst. Vari*able* templates.
 
@Xeo ooooh
 
Xeo
i.e.
 
11:45 AM
Oh, lol
 
Right, that makes much more sense
/me is dumb
 
Xeo
template<class T> T pi = ...;
 
sbi
@TonyTheLion I'll miss you.
6
 
@Xeo yeah, I know what they are. I just misread it as variadic, and wondered why they'd add that again
 
11:46 AM
@BartekBanachewicz Very meh.
 
@sbi @TonyTheLion aye, you know where to find us. Hope to hear from you again. Hope it works out for you :)
 
@TonyTheLion oh. as with sehe, remember to come back. Have fun.
 
Cue not-Tony
 
Oh, repeatedly ninjaed
 
11:52 AM
@sbi Hey, when are you eventually free for a beer?
And how did the fighting go?
There was fighting, right?
 
@sbi How did your meeting go with those backstabbing politicians?
 
@TonyTheLion cya, if you are interested in hiking in Australia, lemme know :p
 
@R.MartinhoFernandes Just for C++03 iterator ranges or other considerations?
 
sbi
The fighting was Ok in that the other two agreed that I made a good impression. It wasn't Ok in that there was no usable outcome. (The outcome was that views differ violently.)
 
There's stuff that I would do in the constructor but don't want to because laziness.
 
11:59 AM
Yeah I've put that in start as well. I don't find it as motivating though.
 
So it's either a bool with checks in all operations, or start.
@LucDanton What's the problem with those?
 
Invalidation rules if the container-thing is embedded.
 
Oh yeah, I ran into that before.
git reset --hard fixed it :(
 
sbi
@R.MartinhoFernandes Chances get better now. Except for today, Saturday, and Monday, there's nothing in my calender right now. I'll probably be away the weekend 22nd/23rd and one or two days ahead/afterwards. Otherwise I'm totally free until mid-July.
 
@sbi well, you have to start some where right?
 
12:02 PM
This is awful - people are leaving left right and centre
 
sbi
@thecoshman I left the first company I worked for (about half a dozen people total) after one years. I shouldn't have waited that long.
 
Soon there be no one left
 
@EtiennedeMartel o_o I wouldn't normally be a praying man
 
sbi
@Telkitty猫咪咪 It wasn't that bad before you came along.
 
ooh.
that was harsh.
 
12:03 PM
@sbi yeah, I should have sorted something out before now
 
sbi
@BartekBanachewicz Actually, that was a fact. Correlation doesn't imply causality.
 
I know :/ I just miss sehe :(
 
@sbi woah, didn't realise you had join the bashing
@BartekBanachewicz he's due to end his hiatus soon, isn't he?
 
@sbi but there were only half of the people here before I joined.
 
@thecoshman I certainly hope so
 
12:04 PM
@TonyTheLion hope you have a good time man. Enjoy your self
 
sbi
@thecoshman I always like a good bashing. You should know that. :) But I would have said this to anyone I knew who hadn't been here for so long.
@Telkitty猫咪咪 So the population has doubled and you still fear there will be nobody left? Are you confused or is it me?
 
newblets can only be counted as 1/3
 
@sbi Nice. Maybe you wanna join us for dinner at the bookshop on Friday?
 
Since you came, Cat, Cicada, Tony and Sehe left
With the last two stating they will come back.
 
and panda
 
12:06 PM
@R.MartinhoFernandes Btw as I'm getting closer to specifying saving for ranges I'm more and more afraid of start getting in the way. I'm not getting to that point fast enough though.
 
@BartekBanachewicz Cicada certainly didn't leave because of her.
 
@R.MartinhoFernandes actually he left because of Cat.
 
then cat left
how sweet
 
sbi
@R.MartinhoFernandes I don't think I'm gonna do that this Friday. But I definitely would want to come some other Friday. Given that I will likely be away next Friday, that would leave early July. Have you plans to have vacation this summer?
 
I don't mind telkitty after she stopped posting pics
 
12:08 PM
@sbi August.
 
Actually people usually leave when I am NOT here
 
I mean she says dumb things time to time, but I do that as frequently
 
like when I am on mini breaks
 
sbi
@R.MartinhoFernandes Nor has anyone implied.
 
Maybe I should be here more often ... to prevent people from leaving :D
 
12:09 PM
@sbi So, what about beer on Wednesday then? (full disclosure: I would like to pick your brain for advice on some matter before the end of the next week)
 
sbi
@R.MartinhoFernandes Good! I just realize that there's another Friday even in June. So I marked the 28th for bookstore dinner. Ok?
 
What is it called when transforming a signal from ____|‾‾‾‾‾ to just an impulse ___|___ ?
 
sbi
@Telkitty猫咪咪 Yeah, and they delete the actual reason they leave as soon as we've seen it.
 
@sbi Sure. I'm there every week.
 
12:10 PM
oh, Jelonek will be a guest in a radio show tomorrow
 
@LucDanton Edge detection.
Rising edge in that particular case.
 
Thanks.
 
hai all
 
I would like to be 'totally free till mid July' too. I'm free till tomorrow, about 08:00 :( The vultures are circling....
 
(Can you guess where I'm going with this? Range-related.)
@MartinJames :(
 
12:11 PM
@BartekBanachewicz not exclusively
 
@thecoshman okay. not exclusively.
hi @rightfold. Have you managed to lay hands on my code yet?
 
@LucDanton Maybe. I did consider digital signals might be helpful thiking tools before, but never went beyond considering it.
 
Ah no too far out. It's for span-like functionality with filter as a primitive. (hehe, filter.)
 
Xeo
Ah, you wanna stop at the edge where the predicate first fails?
 
12:15 PM
Ye.
 
Xeo
Interesting thinking
 
I think I will be able to start answering on SO soon again.
 
Really? I'm like "oh god I don't want to implement any of that shit how can I get away with it".
 
I totally know what you mean.
 
Xeo
I meant the tangent to signals.
 
12:16 PM
14 mins ago, by R. Martinho Fernandes
git reset --hard fixed it :(
 
time to hit 10k
 
^ same feeling there.
 
@BartekBanachewicz why did you have to stop?
 
@MartinJames Does it involve Unicode? ;)
 
@Xeo Ah. I was wondering how I was going to name the functionality, plus it still felt like it was something familiar. After sleeping on it signals came to mind but I'm not entirely satisfied with.
OH RIGHT IT'S LATCHES
 
12:17 PM
If anyone has the gift of healing, they can lay their hands on my code, no problemo..
 
latches would be more the opposite...
 
@thecoshman Really? I needs to wiki moar
 
well, a latch would take a signal like ___|__ and convert it to _______|‾‾‾‾‾
what you first described is like what the robot said, rising edge detection
 
@thecoshman Ah, so it makes it longer. :P
 
@R.MartinhoFernandes ಠ_ಠ stop doing that
 
12:21 PM
Sorry, it's all stream of consciousness. I'm jumping from concept to concept to remember what I'm after. I think I want to turn a predicate from combinatory logic (so, stateless) into something with state, i.e. sequential logic.
 
Something in czech. has raised an exception, message 'o.oreo', must be a problem with cookies...
 
@thecoshman That's what I said when she said "Ah, so it makes it longer".
@MartinJames lol
 
The Roots are quite good.
 
Like carrots?
 
I'm not really into carrots (she said).
 
12:23 PM
ergh... the roboto is trying his humour functions again
 
@thecoshman Based on data gathered by NSA.
 
Xeo
@LucDanton I'll have to google that later.
 
@Xeo I dunno why I didn't think of state machines though. It's related, but with more transistors.
 
State machines is what the C# compiler generates.
 
Did the needle skip? :p
 
Xeo
12:25 PM
yield, infidel!
 
@Xeo yield in C# compiles down to state machines.
I remember when Reflector could not cope with yield and would show the gory details.
 
mutable bool triggered = false; or disable call operator for const values?
 
Eventually they made it smarter and it could decompile the state machines into functions with yield. Quite neat, actually.
 
I fucked up with git again
 
@R.MartinhoFernandes I'm impressed.
 
12:26 PM
@thecoshman too little time for other activities, in short
 
@BartekBanachewicz OMG you are terrible.
What did you do?
 
Fixed the problem
 
@BartekBanachewicz ffs, it's not that hard
 
then tried to fix next one
 
Maybe, I think just maybe you guys (including me) are too rough against the fellow regulars in this lounge
 
12:28 PM
and somehow pushed the unfixed file back again
 
git reset HEAD~200 --hard && git gc --prune --aggressive should fix it.
 
I probably fucked up doing rebase somehow
I was afraid someone will commit something and make it harder
so I just reset all the files to the state I wanted them to be in and commited again
yes I know I suck.
I only recently learned how to squash commits on other branch when rebasing
 
Meh, fuck rebasing.
 
return triggered
    || (triggered = annex::invoke(std::forward<Self>(self).predicate, std::forward<Args>(args)...))
Too bad about the std::forward noise.
 
@R.MartinhoFernandes that's mean (I don't think the gc will do what you expect though. Those commits are still reachable via reflog, so they won't get gc'ed)
 
12:31 PM
@R.MartinhoFernandes people tend to get angry here when the commit log has the merge from 10 commits back. Especially because we mostly work on different files
 
@R.MartinhoFernandes I use rebase a lot :)
 
anyway every fuckup teaches me something
 
Damn, I need a not_ for predicates.
 
One can say I am learning git the --hard way :)
 
user142019
@LucDanton eww using result of assignment expression.
 
12:34 PM
@jalf Meh, just toss in a git config gc.reflogExpire "1 second", then.
@jalf From what I gather, so does Bartek.
@BartekBanachewicz I don't see why "work on different files" would make a difference. It only means merges are automatic more often. It doesn't even mean merges can always be automatic though.
 
Xeo
0
A: Calling std::any_of with conditional operator on lambda gives unexpected results

Sebastian RedlSo here's my guess why the code compiles and shows the behavior you observe. The lambdas are both converted to structs by the compiler. One has no captures, and thus no members and a no-arg constructor. struct IsSignificantBaselineField_Lambda { bool operator ()(const field_info & field) { ....

lol /cc @R.MartinhoFernandes
 
You work on the same project. Different files is just a convenience, because no one likes to browse 500kloc files.
@Xeo OMG that's awesome!
 
Xeo
The constructor should not only be explicit, it should be private.
 
wat
 
@jalf Do you mean rebase -i to clean up your mess before publishing or do you mean making efforts to keep a linear history?
 
12:53 PM
it workses! now to see what happens if I feed stuff to filter
 
sometimes, I think that the developers hate people asking questions on the site
 
@R.MartinhoFernandes anyway it's more about the log looking nice and linear
 
Ugh. Aesthetics.
I've heard actual technical arguments in favour of linear history, and I usually tend to agree with them, but "linear history at all costs because it looks nice" is just flat-out dumb.
 
Haha right I made sure filter uses its predicate in const form. Better get rid of that!
 
@R.MartinhoFernandes both, actually
@R.MartinhoFernandes yeah, "at all costs" is dumb. At work we tend to prefer a linear history, but it's not an absolute. Depends on the size of the feature and how it was developed and such
 
1:04 PM
ok, I've fixed all bugs in tests
time to write a new one! (test, not bug)
 
Merges can make bisecting harder, but when you have many changes to rebase, you may end up with commits that won't compile/pass tests/green light in whatever way in your linear history because they are rebased by a tool that only knows about text. Commits that are broken but are not hurt bisecting as well.
 
@R.MartinhoFernandes true. But only if you're rebasing relative to other related changes
 
why would you have many changes to rebase?
also what @jalf said.
I am using rebase mostly to move my commit to the top
 
yeah, that
 
1:10 PM
@BartekBanachewicz Why would you not? (and I was purposedly vague about what "many" means)
 
@Xeo @R.MartinhoFernandes There you go.
 
@R.MartinhoFernandes because commit often
 
@BartekBanachewicz That's irrelevant. You don't push often.
 
Better try again with std::list<int> to ensure it works for just bidi. Yup, it does.
 
Xeo
@LucDanton Nice.
But lol @ double not_
 
1:12 PM
@R.MartinhoFernandes I do.
 
@Xeo Ya I just started adding some and removing some until I liked the results.
 
Xeo
lol
 
I mean one of the benefits of VCS is autobackup
 
@BartekBanachewicz Do you push as often as you commit?
 
@R.MartinhoFernandes most of the time, yeah
 
1:13 PM
But really the bracketing in not_ means 'detect falling edge', probably. Because takeWhile is just that: filter out from first false on.
 
Erm, why not?
 
Because I don't want to pull your incomplete features.
 
I don't push them to master
I push them to branches
 
Anyone feels like they have a better name than the somewhat cryptic edge though? I'm tempted by until myself.
 
1:14 PM
@BartekBanachewicz Meh, then you end up having to merge/rebase many commits after all!
 
@R.MartinhoFernandes not if you're pushing to a branch no one else is accessing
then you can still rebase
 
@R.MartinhoFernandes I usually squash them into one, then rebase on top of master
 
@jalf Erm, you will get that branch into master eventually, no?
 
@R.MartinhoFernandes you can do it in many ways
 
@R.MartinhoFernandes not necessarily. You'll get the changes from that branch into master eventually. But you can still rebase and change the specific commits
 
1:16 PM
It has to be said that consuming both results of take_while and drop_while means going over the input container twice.
 
@BartekBanachewicz I guess I like my history more with finer granularity.
 
Xeo
@LucDanton That's a shame.
 
In the iterator world we can in fact compute [begin, result of find_if), [result of find_if, end).
@R.MartinhoFernandes Do you want ^that in range form?
 
@R.MartinhoFernandes that's cool if you are the sole developer. But we have many devs, and that would be just noise.
 
@BartekBanachewicz we're a team of 10 (or so). We tend to use finer granularity as well. But yeah, there is a balance to be struck so you don't get too much noise
and the granularity depends a lot on the developer who's committing
 
1:19 PM
@BartekBanachewicz The noise will be there: you have all the changes there.
You are just moving it from the commit logs to the commit diffs.
I.e. instead of a noisy log, you get many noisy diffs.
 
> To store this information we imagine that there is a data structure called a Transmission Control Block (TCB).
From the TCP RFC. It's funny how it doesn't want to dictate implementation details by using the word imagine.
 
What I'm going at is that if I think a merge is appropriate at some point, you have no business bitching about it because it doesn't look nice.
 
404 on before.h++? @R.MartinhoFernandes wat happen
 
@R.MartinhoFernandes and that makes sense. One diff per feature.
 
Or why, rather.
 
user142019
1:23 PM
My code works!
 
I mean I push a few commits if they are incremental for example
@R.MartinhoFernandes which leds me back to my question you didn't answer - what's wrong with pushing after every commit?
 
user142019
You cannot amend.
 
@BartekBanachewicz Many things make sense. It makes sense that smaller diffs are easier to analyse.
 
but you have to read them all to get all changes needed to implement the feature :P
newbie hints disappeared
 
@BartekBanachewicz When I say "pushing" here, I only care about the "publishing" kind of push, which is what matters. Anything you do before it is in stone is fine. Id est, there is no point in worry about the form of history that won't be history.
 
Xeo
1:25 PM
@LucDanton He said he killed it.
 
1 min ago, by Luc Danton
Or why, rather.
 
@BartekBanachewicz You can diff across various commits. I.e. you can make coarse granularity from fine, but not the other way around.
 
Xeo
@LucDanton I think it was the realisation that he just needed takeWhile or something.
 
Oh that rings a bell.
 
FFS chat search refuses to search "before"
 
1:28 PM
@R.MartinhoFernandes true.
 
> if your first person narrator is murdered two thirds of the way through the story then it's a fair clue that nothing in the story should be taken at face value, right?
haha
@LucDanton I never really liked it and it started causing annoyance. I consider it a failed experiment.
 
18 mins ago, by Luc Danton
In the iterator world we can in fact compute [begin, result of find_if), [result of find_if, end).
 
I also realise that I don't write down enough of my ideas.
 
still not completely satisfied by the situation.
 
I don't have a solution to that.
 
1:37 PM
> How can such functions be translated into range lingo? This was quite a conundrum that had me thinking for quite a while, until I realized a simple fact: Three-legged algorithms conceptually do not take three iterators. They take two ranges, left and right! The left-hand range is [first, mid), and the right-hand one is [mid, last). Armed with this simple fact, I first defined and implemented nth_element and rotate as follows:
 
I like that my primary goal is still only to power ogonek, which gives me less worry about it.
@LucDanton That's not about find_if.
 
Right, but it begs the question.
 
(Also, I'm surprised that such a thing was an epiphany for him)
 
Oh he uses slicing.
 
And while I don't have a solution to that, I believe focusing on emulating find_if is not a productive route.
 
1:40 PM
The article does go into find_if and suggests take_while/drop_while as replacements.
 
Yeah.
Given that we're non-lazy takeWhile, dropWhile and span are a minimal set that covers the same functionality.
 
So far I have range/primitives/ for ana/bind/concat_map, range/source/ for things like interval, and range/composite/ for concat, map, filter etc. I want a separate place to put take_while/drop_while which (at least for the time being) I'll implement via filter. Suggestions?
 
In a lazy world span would be enough but yeah.
 
@R.MartinhoFernandes Wouldn't you need help from the compiler?
 
@LucDanton Why aren't they composite?
@LucDanton Right, lazy evaluation.
 
1:43 PM
I can return std::make_pair(result of take_while, result of drop_while) and it doesn't compute anything.
@R.MartinhoFernandes Not just implementing lazy evaluation but also taking advantage of it. Got it.
 
New here? Why not spare some heartache and read the newbie hints.
19
 
@LucDanton But that would go over it twice if you use both.
@thecoshman Thanks.
 
@R.MartinhoFernandes They are. I suppose in my mind I have the 'primitive composite' and the 'composite composite'. No matter, I'll drop them there.
 
consistency :P
@R.MartinhoFernandes you're getting fast at pinning :P
 
I'm still not sure on how to proceed about that const& member overload taking over the & overload :(
 
1:46 PM
@LucDanton I like how your primitives are implemented in terms of some composite ones.
 
hee hee
 
Implementation of std::min is "return (b < a) ? b : a;". Is this equivalent to "return (a < b) ? a : b;" ? (I would expect yes, but you never know.)
 
Damn, I think the actual problem is that putting Requires clauses in the factories like range::filter is causing trouble for the curried operators (e.g. range::manipulators::filter). Overload resolution triggers the hard error :(
 
@StackedCrooked No. Operator overloads in C++ are totally anarchic because no concepts.
 
@StackedCrooked As long as operator< is sane...
 
1:49 PM
Let's try putting SFINAE in range_operators::filter (<- this is completely not confusing!)
 
s/concepts/proper concepts, i.e., not the crap from Concepts Lite/
 
@R.MartinhoFernandes Is there any reason why the implementation is (b < a) ? b : a is picked then?
 
holy crap, I wish Microsoft learned to write decent error messages
 
@StackedCrooked I would guess it's arbitrary.
 
I see.
 
1:50 PM
@R.MartinhoFernandes It's not crap. It does give good tools to consume and combine concepts :v
 
@thecoshman Calm down.
 
@EtiennedeMartel o_0
but Canada :P
 
@LucDanton All it gives you is syntax sugar for SFINAE and static_assert :F
 
I'm wondering if it's worth to make start() optional in implementation (defaulting to []{}) for less boilerplate.
 
1:52 PM
@Griwes I wouldn't say sugar, no.
 
@LucDanton Ok, s/syntax sugar/alternate syntax/
 
@R.MartinhoFernandes I've put off specifying such defaults for the time being.
@Griwes Apply same substitution on my reply.
 
@LucDanton That substitution applied on your reply doesn't change a bit.
 
@R.MartinhoFernandes No. I'm saying you can't blame concepts lite for having bad concepts because it doesn't have any at all.
@Griwes Damn!
 
@LucDanton lol
 
1:55 PM
It's not a joke... it's mentioned in the proposal and the text around it :s
Axioms+concept lite = concepts or something.
 
huh
you can't just click on the sidebar to insert a breakpoint for C#?
that's odd.
 
0
Q: Implementation of std::min

StackedCrookedThe implementation of std::min on cppreference and in the original stl looks like this: return (b < a) ? b : a; But I think this is slightly more readable: return (a < b) ? a : b; Which makes me wonder: are both implementations equivalent? Is there a particular reason why it is implemented ...

 
Damn, I just wrote Bool.
 
Silly question perhaps.
 
@BartekBanachewicz I know, I usually do. That's why I'm confused.
usually the VS UI is way better for C#
 
Xeo
1:57 PM
11
Q: Is it possible to have a non recursive at_c implementation?

abirLong time back I had seen a non-recursive implementation to get the last value/type from a type sequence/value sequence. It has a nice property, that the number of template instantiated is independent (and constant) of the number of elements the sequence contains. The implementation is simple, ...

 
@DeadMG I just read "can't". I thought it should work
 
@DeadMG Hmm, it worked in VS10.
 
Xeo
Who wants pack-indexing?
 
@R.MartinhoFernandes Hmm, it works everywhere else except where I wanted to put the breakpoint :P
 

« first day (971 days earlier)      last day (3978 days later) »