Talk:cpp/chrono/duration

std::chrono::duration could not company with openmpi MPI_gather

following code will be wrong when we use more than 10 threads

I fixed the formatting for the above, but I don't think this belongs here - this isn't stackoverflow. MPI coding is complicated and I wouldn't be surprised if there were a bug or two in the above code.

I think it should be removed.

Hadriel (talk) 14:10, 12 December 2019 (PST)

ADL and Duration Literals
Is there a way to get argument dependent lookup to work with duration literals? If so, that would be a nice example. This would avoid the need to add a using statement just to use a literal somewhere.

e.g.

void foo(std::chrono::duration d) { } ...  foo(10ms); // 10ms is understood to be a std::chrono::duration, so no using is required

68.249.219.17 15:52, 29 December 2021 (PST)


 * ADL would let you find if it were defined in namespace  or  or in the class  when given an  argument. The opposite direction of having a function that takes an argument from, that has no bearing on how the argument is interpreted when calling . Tl;dr ADL changes the function called, not the argument. --Ybab321 (talk) 04:22, 30 December 2021 (PST)