Ticket #10893: fix_typo.patch
File fix_typo.patch, 17.1 KB (added by , 8 years ago) |
---|
-
doc/chrono.qbk
a b 499 499 This makes it easy for `boost::milliseconds` to be represented by the text "milliseconds", or a hypothetical meter 500 500 class to print out "millimeter". 501 501 The __duration and the __time_point i/o can be customized through the new facets: __duration_units and __time_point_units. 502 The user can specialize these facets so that the thechrono i/o could be localizable.502 The user can specialize these facets so that the chrono i/o could be localizable. 503 503 However Boost.Chrono doesn't provides a complete locale solution. 504 504 505 505 `system_clock::time_point` I/O is proposed in terms of UTC timepoints, strongly guided by … … 556 556 __Boost_Chrono__ can be configured as a header-only library defining __BOOST_CHRONO_HEADER_ONLY. 557 557 However Boost.Chrono depends on the non header-only library Boost.System, so that you will need to link with boost_system. 558 558 559 Boost.System has un undocumented feature (use of macro BOOST_ERROR_CODE_HEADER_ONLY) to make it header only.559 Boost.System has an undocumented feature (use of macro BOOST_ERROR_CODE_HEADER_ONLY) to make it header only. 560 560 561 561 If __BOOST_CHRONO_HEADER_ONLY is not defined you need to compile it and build the library before use, for example using: 562 562 … … 1260 1260 [warning Need to be changed 1261 1261 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. 1262 1262 1263 __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 mani mulator `duration_fmt(duration_style::prefix)` or `duration_fmt(duration_style::symbol)`.1263 __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)`. 1264 1264 1265 1265 ] 1266 1266 __example … … 2178 2178 * `d` is the number of `days` 2179 2179 * `h` is the number of `hours` 2180 2180 * `m` is the number of `minutes` 2181 * `ss.cc` is the number of `seconds` rounded to the nearest hundre th of a second2181 * `ss.cc` is the number of `seconds` rounded to the nearest hundredth of a second 2182 2182 2183 2183 #include <boost/chrono/chrono_io.hpp> 2184 2184 #include <ostream> … … 2298 2298 }} 2299 2299 2300 2300 2301 Next is the `boost::thread::timed_mutex` modified fu ctions2301 Next is the `boost::thread::timed_mutex` modified functions 2302 2302 2303 2303 namespace boost { 2304 2304 struct timed_mutex { … … 2525 2525 2526 2526 [section:limitations Limitations and Extensions] 2527 2527 2528 At present, t there is no know limitation respect to the C++11 standard.2528 At present, there is no know limitation respect to the C++11 standard. 2529 2529 2530 2530 The current implementation provides in addition: 2531 2531 … … 2542 2542 When `BOOST_NO_STATIC_ASSERT` is defined, the user can select the way static assertions are reported. Define 2543 2543 2544 2544 * `BOOST_CHRONO_USES_STATIC_ASSERT`: define it if you want to use Boost.StaticAssert. 2545 * `BOOST_CHRONO_USES_MPL_ASSERT`: define it if you want to use Boost.MPL static as ertions.2546 * `BOOST_CHRONO_USES_ARRAY_ASSERT`: define it if you want to use internal static as ertions.2545 * `BOOST_CHRONO_USES_MPL_ASSERT`: define it if you want to use Boost.MPL static assertions. 2546 * `BOOST_CHRONO_USES_ARRAY_ASSERT`: define it if you want to use internal static assertions. 2547 2547 2548 2548 The default behavior is as `BOOST_CHRONO_USES_ARRAY_ASSERT` was defined. 2549 2549 … … 2702 2702 const duration<Rep2, Period2>& rhs); 2703 2703 2704 2704 #ifdef BOOST_CHRONO_EXTENSIONS 2705 // Used to get fre cuency of events2705 // Used to get frequency of events 2706 2706 template <class Rep1, class Rep2, class Period> 2707 2707 constexpr 2708 2708 double __duration__op_div_1( … … 4076 4076 std::basic_ostream<CharT, Traits>& 4077 4077 operator<<(std::basic_ostream<CharT, Traits>& os, const duration<Rep, Period>& d); 4078 4078 4079 __effects outputs the __duration as an ab revieated or long text format depending on the state of the __duration_punct facet.4079 __effects outputs the __duration as an abbreviated or long text format depending on the state of the __duration_punct facet. 4080 4080 4081 4081 __returns the output stream 4082 4082 … … 4093 4093 operator<<(std::basic_ostream<CharT, Traits>& os, 4094 4094 const time_point<Clock, Duration>& tp); 4095 4095 4096 __effects outputs the __time_point as an ab revieated or long text format depending on the state of the __duration_punct facet.4096 __effects outputs the __time_point as an abbreviated or long text format depending on the state of the __duration_punct facet. 4097 4097 4098 4098 __returns the output stream 4099 4099 … … 4795 4795 4796 4796 4797 4797 __effects Scan `s` for the longest of all the plural forms associated with the duration units. 4798 If suc essfull, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`.4798 If successful, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. 4799 4799 4800 4800 __returns `s`, an iterator pointing just beyond the last character that can be determined to be part of a valid name. 4801 4801 … … 4827 4827 4828 4828 4829 4829 __effects Scan `s` for the longest of all the plural forms associated with the duration units. 4830 If suc essfull, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`.4830 If successful, sets the matched ratio in `rt`. Otherwise evaluates `err = std::ios_base::failbit`. 4831 4831 4832 4832 __returns `s`, an iterator pointing just beyond the last character that can be determined to be part of a valid name. 4833 4833 … … 5221 5221 class duration_units_default: public duration_units<CharT> 5222 5222 { 5223 5223 protected: 5224 static const std::size_t pfs_ = 2; // The defaul English facet has two plural forms.5224 static const std::size_t pfs_ = 2; // The default English facet has two plural forms. 5225 5225 5226 5226 public: 5227 5227 typedef CharT char_type; … … 5583 5583 5584 5584 [section:manipulators I/O Manipulators] 5585 5585 5586 There is a parameterized mani mulator that takes the duration_style as parameter.5586 There is a parameterized manipulator that takes the duration_style as parameter. 5587 5587 The symbol or name format can be easily chosen by streaming a `symbol_format` or `name_format` manipulators respectively. 5588 5588 5589 5589 [section:duration_fmt Template Class `duration_fmt`] … … 6468 6468 The conversion to `tm` use `gmtime` (when available) if the timezone is __utc, else it use localtime (if available). 6469 6469 6470 6470 Using the `std::time_put` facet stored in `os`, this inserter writes characters to the stream using the `tm` and the 6471 format ing string stored in the `time_punct` facet, unless that facet was missing, or unless it provided an empty string.6471 formatting string stored in the `time_punct` facet, unless that facet was missing, or unless it provided an empty string. 6472 6472 6473 6473 If the formatting string is empty, then output as follows: 6474 6474 … … 6842 6842 6843 6843 __process_system_cpu_clock satisfy the __clock_req. 6844 6844 6845 __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()`.6845 __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()`. 6846 6846 6847 6847 class process_system_cpu_clock { 6848 6848 public: … … 6931 6931 operator<<(std::basic_ostream<CharT, Traits>& os, 6932 6932 process_times<Rep> const& rhs); 6933 6933 6934 __effects Output each part separated by ';' and s ourrounded by '{', '}'.6934 __effects Output each part separated by ';' and surrounded by '{', '}'. 6935 6935 6936 6936 __throws None. 6937 6937 … … 7289 7289 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: 7290 7290 7291 7291 * format : The output format 7292 * places(precision): the number of decimal places sused.7292 * places(precision): the number of decimal places used. 7293 7293 7294 7294 The default places is given by default_places and is 3. 7295 7295 … … 7377 7377 * [@http://svn.boost.org/trac/boost/ticket/9698 #9698] boost::chrono::thread_clock not declared in OSX 7378 7378 * [@http://svn.boost.org/trac/boost/ticket/9720 #9720] boost::this_thread::sleep_for() sometimes returns immediately on win32 7379 7379 * [@http://svn.boost.org/trac/boost/ticket/9859 #9859] Remove references to gcc-mingw 7380 * [@http://svn.boost.org/trac/boost/ticket/9918 #9918] chrono compilation error on Solaris, func iton timegm7380 * [@http://svn.boost.org/trac/boost/ticket/9918 #9918] chrono compilation error on Solaris, function timegm 7381 7381 * [@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<float>::_Ty std::numeric_limits<float>::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<double, true>::lowest()': 7382 7382 * [@http://svn.boost.org/trac/boost/ticket/10069 #10069] Overflow in chrono clocks on 32bit 7383 7383 * [@http://svn.boost.org/trac/boost/ticket/10151 #10151] timegm function not available on QNX … … 7392 7392 * [@http://svn.boost.org/trac/boost/ticket/7868 #7868] chrono_io parses time incorrectly (1.53 and 1.52) 7393 7393 * [@http://svn.boost.org/trac/boost/ticket/9028 #9028] Typo in boost/chrono/stopwatches/formatters/base_formatter.hpp 7394 7394 * [@http://svn.boost.org/trac/boost/ticket/9147 #9147] uninitialized std::tm 7395 * [@http://svn.boost.org/trac/boost/ticket/9274 #9274] lost of precis sion on system_clock input.7395 * [@http://svn.boost.org/trac/boost/ticket/9274 #9274] lost of precision on system_clock input. 7396 7396 * [@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. 7397 7397 7398 7398 [endsect] [/section [*Version 2.0.3] ] … … 7419 7419 7420 7420 [*Deprecated:] 7421 7421 7422 * The chrono i/o version included in Boost.Chrono 1.2.x has been complet ly refactored in version 2.0.07423 * chrono I/O: The manipulators __duration_short, __duration_long are deprec eated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead.7424 * chrono I/O: The __duration_punct<> facet is deprec eated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes.7422 * The chrono i/o version included in Boost.Chrono 1.2.x has been completely refactored in version 2.0.0 7423 * 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. 7424 * 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. 7425 7425 7426 7426 When BOOST_CHRONO_VERSION==2 the preceding deprecated functions are not available. 7427 7427 … … 7446 7446 7447 7447 [*Deprecated:] 7448 7448 7449 * The chrono i/o version included in Boost.Chrono 1.2.x has been complet ly refactored in version 2.0.07450 * chrono I/O: The manipulators __duration_short, __duration_long are deprec eated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead.7451 * chrono I/O: The __duration_punct<> facet is deprec eated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes.7449 * The chrono i/o version included in Boost.Chrono 1.2.x has been completely refactored in version 2.0.0 7450 * 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. 7451 * 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. 7452 7452 7453 7453 When BOOST_CHRONO_VERSION==2 the preceding deprecated functions are not available. 7454 7454 … … 7463 7463 7464 7464 * [@http://svn.boost.org/trac/boost/ticket/6871 #6871] chrono_io.hpp: operator<<(ostream& os, ...) modifies the state of os. 7465 7465 7466 * The new wio interface provided in version 2 solves this issue. You should move to the new version.7466 * The new io interface provided in version 2 solves this issue. You should move to the new version. 7467 7467 7468 7468 [*Known bugs not fixed yet:] 7469 7469 … … 7659 7659 [*Bug Fixes] 7660 7660 7661 7661 * __process_cpu_clock is now a valid model of __Clock that can be used with __stopclocks_accumulator__. 7662 * eliminate or suppress a lot of warnings appearing with w ith warnings=all -Wextra7662 * eliminate or suppress a lot of warnings appearing with warnings=all -Wextra 7663 7663 * improve the error code handling 7664 7664 7665 7665 [endsect] … … 7698 7698 7699 7699 [*Bug Fixes] 7700 7700 7701 * boost/thread/detail/cv_status.hpp file was not commit ed.7701 * boost/thread/detail/cv_status.hpp file was not committed. 7702 7702 7703 7703 [endsect] 7704 7704 … … 7756 7756 * Added frequency, lifetime and percentage to the default `stopwatch_accumulator_formatter`. 7757 7757 7758 7758 [*Bug Fixes] 7759 * Specific formatters didn't work complet ly.7759 * Specific formatters didn't work completely. 7760 7760 * Replace `duration(0)` by `duration::zero()` on template classes. 7761 7761 * `suspend` doesn't works: `partial_` not initialized neither taken in account by the elapsed function. 7762 7762 … … 7788 7788 * Added digital_time formatter "%d days(s) %h:%m:%s.%n\\n" 7789 7789 * __stopwatch_reporter is a convenient generic class reporting elapsed time for the Stopwatch concept. 7790 7790 * Added `stopclock<__Clock>` shortcut `stopwatch_reporter<stopwatch<__Clock>>` 7791 * Added __scoped_stopclock__ which trace at the const uctor and destructor.7791 * Added __scoped_stopclock__ which trace at the constructor and destructor. 7792 7792 * Added `typeof` registration for classes __duration and __time_point 7793 7793 7794 7794 * 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 7798 7799 7799 [*Bug Fixes] 7800 7800 7801 * 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 sfunctions using the std::string `m_format`.7801 * 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`. 7802 7802 7803 7803 [endsect] 7804 7804 … … 7847 7847 7848 7848 * Use `INTMAC_C` to name `intmax_t` constants instead of `LL`. 7849 7849 * Separate `chrono.cpp` on # files `win/chrono.cpp`, `mac/chrono.cpp` and `posix/chrono.cpp` to make easier the maintenance on different platforms. 7850 * Separate `process_clock.cpp` on # files `win/process_clock.cpp`, `mac/process_clock.cpp` and `posix/process_clock.cpp` to make easier the maintena ce on different platforms.7850 * 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. 7851 7851 * Added the `error_code` prototype for `steady_clock::now` for `mac/chrono.cpp`. 7852 7852 * Fully implement `mac/chrono.cpp` with error handling. 7853 7853 * Take care on POSIX systems when `CLOCK_STEADY` is not defined. … … 7929 7929 7930 7930 [heading Which APIs have been chosen to implement each clock on each platform?] 7931 7931 7932 The following table presents a resume of which API is u used for each clock on each platform7932 The following table presents a resume of which API is used for each clock on each platform 7933 7933 [table Clock API correspondence 7934 7934 [[Clock] [Windows Platform] [Posix Platform] [Mac Platform] ] 7935 7935 [[__system_clock] [GetSystemTimeAsFileTime] [clock_gettime( CLOCK_REALTIME)] [gettimeofday] ]