Boost C++ Libraries: Ticket #6363: Incorrect error documentation for time_zone_from_region() in tz_db_base.hpp https://svn.boost.org/trac10/ticket/6363 <p> In the event of an error, time_zone_from_region()'s documentation is incorrect in the following ways: </p> <ul><li>The function returns a null pointer. It does not throw an exception. </li><li>The specified "record_not_found" exception does not exist. </li></ul><p> Here's the doc/code in question (identical in at least 1.46.0-1.48.0): </p> <pre class="wiki"> //! Returns a time_zone object built from the specs for the given region /*! Returns a time_zone object built from the specs for the given * region. If region does not exist a local_time::record_not_found * exception will be thrown */ boost::shared_ptr&lt;time_zone_base_type&gt; time_zone_from_region(const string_type&amp; region) const { // get the record typename map_type::const_iterator record = m_zone_map.find(region); if(record == m_zone_map.end()){ return boost::shared_ptr&lt;time_zone_base_type&gt;(); //null pointer } return record-&gt;second; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6363 Trac 1.4.3