std::chrono::ambiguous_local_time

Header: <chrono>

Defines a type of object to be thrown as exception to report that an attempt was made to convert an ambiguous std::chrono::local_time to a std::chrono::sys_time without specifying a std::chrono::choose (such as choose::earliest or choose::latest).

# Declarations

class ambiguous_local_time;

(since C++20)

# Parameters

# Return value

*this

# Notes

Because copying a standard library class derived from std::exception is not permitted to throw exceptions, this message is typically stored internally as a separately-allocated reference-counted string.

# See also