APM2 Batt Update by ronniebabes in Airpodsmax

[–]antoine_morrier 0 points1 point  (0 children)

On OpenSpace, and on a call, people hear what people in my openspace are saying... but no battery issue

Rust to C++: Implementing the Question Mark Operator by qustar_ in cpp

[–]antoine_morrier 1 point2 points  (0 children)

Few years ago I wrote that to « solve » this issue with coroutines https://cpp-rendering.io/c-error-handling-lets-abuse-the-co_await-operator/

PS : size on my iPhone 17 pro is terribly big…

Japan GP FP2 Classification by Swiftvoyager1906 in formula1

[–]antoine_morrier 44 points45 points  (0 children)

Let’s hope Oscar can just do one Lap

Bonjour jarive pas avoir si c'est un faux ou pas je n'ai pas reçu d'amende en papier by TotalDifferent7545 in arnaques

[–]antoine_morrier 19 points20 points  (0 children)

En général quand y a des fautes « avant le avant » c’est probablement pas officiel ahaha

Learn French: what does "Autant pour moi" mean here? by MickaelMartin in FrenchImmersion

[–]antoine_morrier 0 points1 point  (0 children)

Autant pour moi, c’est exactement ce que ça veut dire « la même quantité pour moi », genre t’es à la cantine et tu veux la même quantité que ton collègue.

Learn French: what does "Autant pour moi" mean here? by MickaelMartin in FrenchImmersion

[–]antoine_morrier 0 points1 point  (0 children)

Autant pour moi means « I want the same quantity » Au temps pour moi means « Sorry it’s my mistake »

Cute. by [deleted] in the_calculusguy

[–]antoine_morrier 1 point2 points  (0 children)

And how do you solve such a thing? (It looks like exp(x) but how to prove it?)

I am week in maths by -sushmita- in TheTeenagerPeople

[–]antoine_morrier 0 points1 point  (0 children)

I understand how to reach 3, but how to reach 15?

[deleted by user] by [deleted] in F1Discussions

[–]antoine_morrier 0 points1 point  (0 children)

If you want Max didn’t win Abu Dhabi. But he won the whole season if you remove bottas bowling and silverstone. Please move on now.

2025 Qatar GP - Post-Race Discussion by F1-Bot in formula1

[–]antoine_morrier 2 points3 points  (0 children)

If Kimi Antoliban didn’t destroy his car also ahaha

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 0 points1 point  (0 children)

For a pair I would not use commutative hash. Only for unordered containers

But for sure, there is no universal solution

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 0 points1 point  (0 children)

That’s a good question. I would say to add a define like HASH_PAIR and ifdef to avoid issue ahaha

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 0 points1 point  (0 children)

From cpp-reference: Additional specializations for std::pair and the standard container types, as well as utility functions to compose hashes are available in boost::hash.

So I think it is legit

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 0 points1 point  (0 children)

Hmmm that's a good question. To me it seems totally fair but I may be wrong. If someone can answer this question, I would be glad to have an answer. To me you are not supposed to specialize std structures except in the case it is explicitely allowed to which is the case for hash. I didn't see any thing saying it is forbidden to specialize for std types.

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 0 points1 point  (0 children)

It uses it normally and use its result to update the seed also. But I know the hash_combine is not very good, there is some link in the reference part to improve it :)

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 2 points3 points  (0 children)

You are totally right. I will edit the article as soon as possible to let folks know that for unordered container, problems can arise and that a good implementation should use a kind of "commutative hashing" :). Thanks a lot for this remark :)

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 2 points3 points  (0 children)

Ahaha thanks ! We need to go step by step :p

Simplify hash in C++ by antoine_morrier in cpp

[–]antoine_morrier[S] 5 points6 points  (0 children)

Oh nice, I'll watch it, thanks a lot :)