Bjarne Stroustrup

Results 32 comments of Bjarne Stroustrup

They shouldn't be identical. We need to flesh out Per.18

If the option to throw disappear, I will have to stop recommending using that version for the reason mentioned below. On 9/5/2020 12:13 PM, jheaff1 wrote: > > I too...

Yes. Preconditions are not a substitute for input validation. Rather, a precondition can be a check that you did the input validation correctly. On 9/6/2020 12:58 PM, Jonathan Wakely wrote:...

There are a very wide spectrum of opinions on what contracts are for and how the notion is best supported. You can even find contradictory opinions from a single author...

Yes, data would be great. The very first C++ (and C with classes) got away with banning long->char and float->char.

We have not forgotten. We are still working on a standards-style specification.

Looks good On 8/9/2016 2:46 PM, Neil MacIntosh wrote: > Just as an update while other specifications are outstanding...two of > the types defined in the GSL (|byte| and |span|)...

On 10/1/2020 9:47 PM, Sergey Zubkov wrote: > > I'd say C++20 ranges include this functionality as views::take_while > . For example, > > |int a[] = {1,2,3,0,-1,-2,-3}; auto up_to_zero...

If I understand correctly, the Absail FixedArray is not an alternative to stack_array for some embedded systems uses where they don't accept spillover to heap - because heap allocation is...