Stack exchange licensing code under CC-BY-SA is just bonkers, from all perspectives.
Should I sacrifice my code snippet to this demon in exchange for feedback?

I see, they got offended that I considered libstdc++ standard library mailing list before them
codereview.stackexchange.com/p
probably the main reason they closed it

@namark they use damn video for describing standards? whoa... seems, C++ went down much worse than I could expect, really. do they even have this in normal pdf or something?

@iron_bug

The video just describes a particular implementation, standard is still the same standard, that you can get for free in the draft form, or have to buy in a final form for some reason. This function if from C++20 standard, but you don't really need the document, it's a very simple function to describe, it just takes any two arithmetic types and returns their midpoint/average, more precisely what mathematical formulas a+(b-a)/2 or (a+b)/2 would give you. It's not easy to implement though, that's why they added it to the standard.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.