--- a/doc/chrono.qbk 2014-12-05 10:34:42.000000000 +0900 +++ b/doc/chrono.qbk 2014-12-23 11:37:52.000000000 +0900 @@ -499,7 +499,7 @@ This makes it easy for `boost::milliseconds` to be represented by the text "milliseconds", or a hypothetical meter class to print out "millimeter". The __duration and the __time_point i/o can be customized through the new facets: __duration_units and __time_point_units. -The user can specialize these facets so that the the chrono i/o could be localizable. +The user can specialize these facets so that the chrono i/o could be localizable. However Boost.Chrono doesn't provides a complete locale solution. `system_clock::time_point` I/O is proposed in terms of UTC timepoints, strongly guided by @@ -556,7 +556,7 @@ __Boost_Chrono__ can be configured as a header-only library defining __BOOST_CHRONO_HEADER_ONLY. However Boost.Chrono depends on the non header-only library Boost.System, so that you will need to link with boost_system. -Boost.System has un undocumented feature (use of macro BOOST_ERROR_CODE_HEADER_ONLY) to make it header only. +Boost.System has an undocumented feature (use of macro BOOST_ERROR_CODE_HEADER_ONLY) to make it header only. If __BOOST_CHRONO_HEADER_ONLY is not defined you need to compile it and build the library before use, for example using: @@ -1260,7 +1260,7 @@ [warning Need to be changed This is followed by a single space and then the compile-time unit name of the __duration. This unit name is built on the string returned from `ratio_string<>` and the data used to construct the __duration_punct which was inserted into the stream's locale. If a __duration_punct has not been inserted into the stream's locale, a default constructed __duration_punct will be added to the stream's locale. -__duration unit names come in two varieties: long(prefix) and short(symbol). The default constructed __duration_punct provides names in the long(prefix) format. These names are English descriptions. Other languages are supported by constructing a __duration_punct with the proper spellings for "hours", "minutes" and "seconds", and their abbreviations (for the short format). The short or long format can be easily chosen by streaming a `duration_short()` or `duration_long()` manipulator respectively or using the parameterized manimulator `duration_fmt(duration_style::prefix)` or `duration_fmt(duration_style::symbol)`. +__duration unit names come in two varieties: long(prefix) and short(symbol). The default constructed __duration_punct provides names in the long(prefix) format. These names are English descriptions. Other languages are supported by constructing a __duration_punct with the proper spellings for "hours", "minutes" and "seconds", and their abbreviations (for the short format). The short or long format can be easily chosen by streaming a `duration_short()` or `duration_long()` manipulator respectively or using the parameterized manipulator `duration_fmt(duration_style::prefix)` or `duration_fmt(duration_style::symbol)`. ] __example @@ -2178,7 +2178,7 @@ * `d` is the number of `days` * `h` is the number of `hours` * `m` is the number of `minutes` -* `ss.cc` is the number of `seconds` rounded to the nearest hundreth of a second +* `ss.cc` is the number of `seconds` rounded to the nearest hundredth of a second #include #include @@ -2298,7 +2298,7 @@ }} -Next is the `boost::thread::timed_mutex` modified fuctions +Next is the `boost::thread::timed_mutex` modified functions namespace boost { struct timed_mutex { @@ -2525,7 +2525,7 @@ [section:limitations Limitations and Extensions] -At present, tthere is no know limitation respect to the C++11 standard. +At present, there is no know limitation respect to the C++11 standard. The current implementation provides in addition: @@ -2542,8 +2542,8 @@ When `BOOST_NO_STATIC_ASSERT` is defined, the user can select the way static assertions are reported. Define * `BOOST_CHRONO_USES_STATIC_ASSERT`: define it if you want to use Boost.StaticAssert. -* `BOOST_CHRONO_USES_MPL_ASSERT`: define it if you want to use Boost.MPL static asertions. -* `BOOST_CHRONO_USES_ARRAY_ASSERT`: define it if you want to use internal static asertions. +* `BOOST_CHRONO_USES_MPL_ASSERT`: define it if you want to use Boost.MPL static assertions. +* `BOOST_CHRONO_USES_ARRAY_ASSERT`: define it if you want to use internal static assertions. The default behavior is as `BOOST_CHRONO_USES_ARRAY_ASSERT` was defined. @@ -2702,7 +2702,7 @@ const duration& rhs); #ifdef BOOST_CHRONO_EXTENSIONS - // Used to get frecuency of events + // Used to get frequency of events template constexpr double __duration__op_div_1( @@ -4076,7 +4076,7 @@ std::basic_ostream& operator<<(std::basic_ostream& os, const duration& d); -__effects outputs the __duration as an abrevieated or long text format depending on the state of the __duration_punct facet. +__effects outputs the __duration as an abbreviated or long text format depending on the state of the __duration_punct facet. __returns the output stream @@ -4093,7 +4093,7 @@ operator<<(std::basic_ostream& os, const time_point& tp); -__effects outputs the __time_point as an abrevieated or long text format depending on the state of the __duration_punct facet. +__effects outputs the __time_point as an abbreviated or long text format depending on the state of the __duration_punct facet. __returns the output stream @@ -4795,7 +4795,7 @@ __effects Scan `s` for the longest of all the plural forms associated with the duration units. -If sucessfull, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. +If successful, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. __returns `s`, an iterator pointing just beyond the last character that can be determined to be part of a valid name. @@ -4827,7 +4827,7 @@ __effects Scan `s` for the longest of all the plural forms associated with the duration units. -If sucessfull, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. +If successful, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. __returns `s`, an iterator pointing just beyond the last character that can be determined to be part of a valid name. @@ -5221,7 +5221,7 @@ class duration_units_default: public duration_units { protected: - static const std::size_t pfs_ = 2; // The defaul English facet has two plural forms. + static const std::size_t pfs_ = 2; // The default English facet has two plural forms. public: typedef CharT char_type; @@ -5583,7 +5583,7 @@ [section:manipulators I/O Manipulators] -There is a parameterized manimulator that takes the duration_style as parameter. +There is a parameterized manipulator that takes the duration_style as parameter. The symbol or name format can be easily chosen by streaming a `symbol_format` or `name_format` manipulators respectively. [section:duration_fmt Template Class `duration_fmt`] @@ -6468,7 +6468,7 @@ The conversion to `tm` use `gmtime` (when available) if the timezone is __utc, else it use localtime (if available). Using the `std::time_put` facet stored in `os`, this inserter writes characters to the stream using the `tm` and the -formating string stored in the `time_punct` facet, unless that facet was missing, or unless it provided an empty string. +formatting string stored in the `time_punct` facet, unless that facet was missing, or unless it provided an empty string. If the formatting string is empty, then output as follows: @@ -6842,7 +6842,7 @@ __process_system_cpu_clock satisfy the __clock_req. -__process_system_cpu_clock class provides access to the system CPU-time steady clockof the calling process. The process relative system current time can be obtained by calling `process_system_cpu_clock::now()`. +__process_system_cpu_clock class provides access to the system CPU-time steady clock of the calling process. The process relative system current time can be obtained by calling `process_system_cpu_clock::now()`. class process_system_cpu_clock { public: @@ -6931,7 +6931,7 @@ operator<<(std::basic_ostream& os, process_times const& rhs); -__effects Output each part separated by ';' and sourrounded by '{', '}'. +__effects Output each part separated by ';' and surrounded by '{', '}'. __throws None. @@ -7289,7 +7289,7 @@ class `run_timer` provides a complete run-time reporting package that can be invoked in a single line of code. The reporting is controlled by two parameters: * format : The output format -* places(precision): the number of decimal placess used. +* places(precision): the number of decimal places used. The default places is given by default_places and is 3. @@ -7377,7 +7377,7 @@ * [@http://svn.boost.org/trac/boost/ticket/9698 #9698] boost::chrono::thread_clock not declared in OSX * [@http://svn.boost.org/trac/boost/ticket/9720 #9720] boost::this_thread::sleep_for() sometimes returns immediately on win32 * [@http://svn.boost.org/trac/boost/ticket/9859 #9859] Remove references to gcc-mingw -* [@http://svn.boost.org/trac/boost/ticket/9918 #9918] chrono compilation error on Solaris, funciton timegm +* [@http://svn.boost.org/trac/boost/ticket/9918 #9918] chrono compilation error on Solaris, function timegm * [@http://svn.boost.org/trac/boost/ticket/9811 #9811] boost/boost/chrono/duration.hpp:355:56: error: call to non-constexpr function 'static std::numeric_limits::_Ty std::numeric_limits::max()' /home/zosun/input_service/inputservices-core-service/other/boost/boost/chrono/duration.hpp: In static member function 'static constexpr double boost::chrono::detail::chrono_numeric_limits::lowest()': * [@http://svn.boost.org/trac/boost/ticket/10069 #10069] Overflow in chrono clocks on 32bit * [@http://svn.boost.org/trac/boost/ticket/10151 #10151] timegm function not available on QNX @@ -7392,7 +7392,7 @@ * [@http://svn.boost.org/trac/boost/ticket/7868 #7868] chrono_io parses time incorrectly (1.53 and 1.52) * [@http://svn.boost.org/trac/boost/ticket/9028 #9028] Typo in boost/chrono/stopwatches/formatters/base_formatter.hpp * [@http://svn.boost.org/trac/boost/ticket/9147 #9147] uninitialized std::tm -* [@http://svn.boost.org/trac/boost/ticket/9274 #9274] lost of precission on system_clock input. +* [@http://svn.boost.org/trac/boost/ticket/9274 #9274] lost of precision on system_clock input. * [@http://svn.boost.org/trac/boost/ticket/9276 #9276] output from a system_clock::time_point get a time_point that is one day later than expected. [endsect] [/section [*Version 2.0.3] ] @@ -7419,9 +7419,9 @@ [*Deprecated:] -* The chrono i/o version included in Boost.Chrono 1.2.x has been completly refactored in version 2.0.0 -* chrono I/O: The manipulators __duration_short, __duration_long are depreceated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead. -* chrono I/O: The __duration_punct<> facet is depreceated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes. +* The chrono i/o version included in Boost.Chrono 1.2.x has been completely refactored in version 2.0.0 +* chrono I/O: The manipulators __duration_short, __duration_long are deprecated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead. +* chrono I/O: The __duration_punct<> facet is deprecated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes. When BOOST_CHRONO_VERSION==2 the preceding deprecated functions are not available. @@ -7446,9 +7446,9 @@ [*Deprecated:] -* The chrono i/o version included in Boost.Chrono 1.2.x has been completly refactored in version 2.0.0 -* chrono I/O: The manipulators __duration_short, __duration_long are depreceated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead. -* chrono I/O: The __duration_punct<> facet is depreceated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes. +* The chrono i/o version included in Boost.Chrono 1.2.x has been completely refactored in version 2.0.0 +* chrono I/O: The manipulators __duration_short, __duration_long are deprecated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead. +* chrono I/O: The __duration_punct<> facet is deprecated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes. When BOOST_CHRONO_VERSION==2 the preceding deprecated functions are not available. @@ -7463,7 +7463,7 @@ * [@http://svn.boost.org/trac/boost/ticket/6871 #6871] chrono_io.hpp: operator<<(ostream& os, ...) modifies the state of os. - * The neww io interface provided in version 2 solves this issue. You should move to the new version. + * The new io interface provided in version 2 solves this issue. You should move to the new version. [*Known bugs not fixed yet:] @@ -7659,7 +7659,7 @@ [*Bug Fixes] * __process_cpu_clock is now a valid model of __Clock that can be used with __stopclocks_accumulator__. -* eliminate or suppress a lot of warnings appearing with with warnings=all -Wextra +* eliminate or suppress a lot of warnings appearing with warnings=all -Wextra * improve the error code handling [endsect] @@ -7698,7 +7698,7 @@ [*Bug Fixes] -* boost/thread/detail/cv_status.hpp file was not commited. +* boost/thread/detail/cv_status.hpp file was not committed. [endsect] @@ -7756,7 +7756,7 @@ * Added frequency, lifetime and percentage to the default `stopwatch_accumulator_formatter`. [*Bug Fixes] -* Specific formatters didn't work completly. +* Specific formatters didn't work completely. * Replace `duration(0)` by `duration::zero()` on template classes. * `suspend` doesn't works: `partial_` not initialized neither taken in account by the elapsed function. @@ -7788,7 +7788,7 @@ * Added digital_time formatter "%d days(s) %h:%m:%s.%n\\n" * __stopwatch_reporter is a convenient generic class reporting elapsed time for the Stopwatch concept. * Added `stopclock<__Clock>` shortcut `stopwatch_reporter>` -* Added __scoped_stopclock__ which trace at the constuctor and destructor. +* Added __scoped_stopclock__ which trace at the constructor and destructor. * Added `typeof` registration for classes __duration and __time_point * The old classes `process_times`, `process_clock`, `process_timer`, `timer` and `run_timer` are deprecated as the preceding additions are more generic. However for backward compatibility they preserved until inclusion of the library in Boost. Next follows the equivalences: @@ -7798,7 +7798,7 @@ [*Bug Fixes] -* Try to correct warning "C4251: 'boost::chrono::run_timer::m_format' : class 'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class 'boost::chrono::run_timer'", by don't including inlines functions using the std::string `m_format`. +* Try to correct warning "C4251: 'boost::chrono::run_timer::m_format' : class 'std::basic_string<_Elem,_Traits,_Ax>' needs to have dll-interface to be used by clients of class 'boost::chrono::run_timer'", by don't including inline functions using the std::string `m_format`. [endsect] @@ -7847,7 +7847,7 @@ * Use `INTMAC_C` to name `intmax_t` constants instead of `LL`. * Separate `chrono.cpp` on # files `win/chrono.cpp`, `mac/chrono.cpp` and `posix/chrono.cpp` to make easier the maintenance on different platforms. -* Separate `process_clock.cpp` on # files `win/process_clock.cpp`, `mac/process_clock.cpp` and `posix/process_clock.cpp` to make easier the maintenace on different platforms. +* Separate `process_clock.cpp` on # files `win/process_clock.cpp`, `mac/process_clock.cpp` and `posix/process_clock.cpp` to make easier the maintenance on different platforms. * Added the `error_code` prototype for `steady_clock::now` for `mac/chrono.cpp`. * Fully implement `mac/chrono.cpp` with error handling. * Take care on POSIX systems when `CLOCK_STEADY` is not defined. @@ -7929,7 +7929,7 @@ [heading Which APIs have been chosen to implement each clock on each platform?] -The following table presents a resume of which API is uused for each clock on each platform +The following table presents a resume of which API is used for each clock on each platform [table Clock API correspondence [[Clock] [Windows Platform] [Posix Platform] [Mac Platform] ] [[__system_clock] [GetSystemTimeAsFileTime] [clock_gettime( CLOCK_REALTIME)] [gettimeofday] ]