Closed tomaszkam closed 5 years ago
I recommend closing this one.
I wrote it to prevent code like this:
void test(system_clock);
...
test({});
This comes from our experience that tag types should have an explicit default constructor, for example defer_lock_t
: http://eel.is/c++draft/mutex.syn
However we've lived with clocks the way they are since C++11, and I haven't heard of any complaints from the wild, probably because people aren't passing clock objects around. This can be changed in C++23 should the need arise.
Agreed. I think that would be also LEWG territory, to see if the clock should be treated as tag types.
Original comment: