On Fri, Mar 7, 2025 at 4:02 AM Jonathan Wakely via Std-Proposals <std-proposals@lists.isocpp.org> wrote:

You can create a magic variable for that if you want to, something like: 

struct maxtimeout_t {
  template<class D = std::chrono::system_clo k::duration>
  operator D() const noexcept {
    return D::max();
  }
};
constinit maxtimeout_t maxtimeout{};

This is the first time I recall ever seeing an `operator D` with a defaulted template parameter.
Under what circumstances does that default template argument get used?

–Arthur