2
0
mirror of https://github.com/boostorg/chrono.git synced 2026-01-29 19:32:16 +00:00
Commit Graph

375 Commits

Author SHA1 Message Date
Peter Dimov
8745fb542a Update C++03 deprecation message 2023-10-13 12:49:53 +03:00
Peter Dimov
c3eb9decb7 Reflect Boost.Ratio changes 2023-10-13 12:39:20 +03:00
Peter Dimov
8551ec1c53 Update C++03 deprecation message 2023-06-03 02:26:57 +03:00
Peter Dimov
676084be30 Merge pull request #67 from fanquake/remove_deprecated
refactor: use core/enable_if over utility/enable_if
2023-04-22 14:55:52 +03:00
Peter Dimov
912d4892a3 Change ratio_string<>::long_name, short_name to prefix, symbol 2023-04-21 20:47:42 +03:00
Peter Dimov
207d30d4c6 Add C++03 deprecation notice 2023-03-05 06:45:04 +02:00
fanquake
c13e36a698 refactor: use core/enable_if over utility/enable_if
The later is deprecated.
2022-12-04 15:33:19 +00:00
Peter Dimov
f13b061053 Merge pull request #64 from mborland/catch
Fix catch exception by value warning
2022-07-11 23:39:39 +03:00
Matt Borland
7e3fe2a5f5 Fix const correctness 2022-07-11 10:40:02 -07:00
Matt Borland
b40a8b39f0 Use BOOST_NULLPTR 2022-07-11 10:33:05 -07:00
Matt Borland
849f5f6381 Fixes for -Wzero-as-null-pointer-constant 2022-07-10 08:51:20 -07:00
Matt Borland
12c7bb4eb0 Fix catch exception by value warning
-Werror=catch-value
2022-07-09 16:24:38 -07:00
Peter Dimov
95a73f93c4 Merge pull request #63 from mborland/deprecated_copy
Fix -Wdeprecated-copy for duration
2022-07-03 21:19:33 +03:00
Peter Dimov
8f7043756c Merge pull request #52 from EugeneZelenko/fix-extra-semi-stmt-misspelling
Fix Clang -Wextra-semi-stmt warning and misspelling in comment.
2022-07-03 20:42:30 +03:00
Matt Borland
94c9a0625f Fix -Wdeprecated-copy for duration 2022-07-02 20:02:44 -07:00
Eugene Zelenko
c9b7b347e1 Fix Clang -Wextra-semi-stmt warning and misspelling in comment. 2020-05-30 10:13:16 -07:00
Andrey Semashev
18c8352003 Avoid using deprecated headers to silence compiler warnings.
The deprecated headers will be removed in a future release.
2020-05-11 17:40:48 +03:00
Peter Dimov
fd5174a0be Fix detail/inlined/win/chrono.hpp relying on a <winerror.h> macro 2019-12-23 07:53:53 +02:00
Nikita Kniazev
6d81146970 Switch out from using deprecated Winapi namespace 2019-11-25 21:04:56 +03:00
James E. King III
b6f34439ba Work around lack of thread safety in cygwin CLOCK_MONOTONIC one-time initialization 2018-11-23 11:55:24 -05:00
Ion Gaztañaga
3a4338a938 Fix old GCC warning about attributes in declarations
"warning: type attributes are honored only at type definition"
2018-09-09 01:40:03 +02:00
Vicente J. Botet Escriba
ab84c68b6e #31: int -> int32_t 2018-09-07 06:02:41 +02:00
Andrey Semashev
730a03396f Updated Boost.WinAPI usage to the new location and namespace. 2017-10-24 21:37:49 +03:00
Vicente J. Botet Escriba
11b1e144ef remove BOOST_CHRONO_ macros in boost/chrono/detail/system.hpp. 2017-10-23 02:26:46 +02:00
Peter Dimov
9edadcb9e3 Do not use deprecated System features in preparation of removing BOOST_SYSTEM_NO_DEPRECATED 2017-10-21 18:59:25 +03:00
Daniela Engert
bb0b52493c Replace unsafe library function localtime by safe function localtime_s when compiled with msvc 8.0 or later.
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-04 10:40:42 +02:00
Daniela Engert
342a64de13 Fix compiler warnings about narrowing conversions
Signed-off-by: Daniela Engert <dani@ngrt.de>
2017-05-03 15:56:39 +02:00
Vicente J. Botet Escriba
633119f69c #12999- use BOOST_NOEXCEPT_OR_NOTHROW to avoid warnings 2017-05-01 03:34:19 +02:00
Vicente J. Botet Escriba
fd17d56e77 Merge branch 'develop' of github.com:boostorg/chrono into develop 2017-04-29 17:31:50 +02:00
Vicente J. Botet Escriba
301adee6b8 replace iostream by iofwd. #12901. 2017-04-29 17:29:28 +02:00
Vicente J. Botet Escriba
9d72428bee Make chrono::duration trivial in C++11. 2017-04-24 23:41:07 +02:00
Andrey Semashev
a1b44c5a47 Rename short all-capital typedefs to avoid name clashes with macros.
In particular, CR is defined in apache2/httpd.h as a character of carriage
return (13). CD is also potentially problematic, so rename it as well.
2017-04-20 15:18:15 +03:00
Vicente J. Botet Escriba
bff204f169 Merge branch 'develop' of github.com:boostorg/chrono into develop 2017-02-18 23:38:07 +01:00
Vicente J. Botet Escriba
b5712029bf Avoid warning 2017-02-18 23:37:50 +01:00
Jürgen Hunold
183e2fb3d5 remove trailing ";"
clang warning: extra ';' after member function definition [-Wextra-semi]
2017-01-06 09:54:11 +01:00
Vicente J. Botet Escriba
b62c46e340 Merge branch 'develop' of github.com:boostorg/chrono into develop 2016-08-09 00:54:53 +02:00
Vicente J. Botet Escriba
62b3c81f5f Take care of 12260 Bug: time_fmt does not support for wchar_t on windows. 2016-08-09 00:54:05 +02:00
jzmaddock
e60cbaf79d Fix duration default constructor to be constexpr-safe.
Also add tests for the issue.
2016-07-03 18:47:54 +01:00
Wei-Ming Yang
061fa7b381 fix a mistake in time_point_get<>::get_epoch<>()
It invokes member function `get_epoch<Clock>()` without the template argument `Clock`.
2016-06-29 11:57:45 +08:00
Vicente J. Botet Escriba
eed6d27a33 Merge pull request #18 from rick68/patch-6
fix a bug in time_get<>::get_month()
2016-06-28 14:16:30 +02:00
Vicente J. Botet Escriba
eeb3e524e3 Merge pull request #14 from rick68/patch-2
fix bugs in relational operators of process_times
2016-06-28 14:12:22 +02:00
Vicente J. Botet Escriba
925e54f259 Merge pull request #16 from rick68/patch-4
fix a bug in ios_state_ptr<>::release()
2016-06-28 14:07:46 +02:00
Vicente J. Botet Escriba
ff74cc2c93 Merge pull request #13 from rick68/patch-1
fix a mistake in process_times<Rep>::read()
2016-06-28 14:00:30 +02:00
Vicente J. Botet Escriba
c99e3afaac Merge pull request #15 from rick68/patch-3
remove a redundant character
2016-06-28 13:58:45 +02:00
Wei-Ming Yang
a8e772474d fix a bug in time_get<>::get_month()
According to `boost::chrono::detail::time_get<>::get()` with format command `%m`, the valid range is from `01` to `12`, it should not allow passing `00` and assign `-1` into m.
2016-06-27 06:53:55 +08:00
Wei-Ming Yang
d1a0b6dd94 fix a bug in time_get<>::get_day_year_num()
`boost::chrono::detail::time_get<>::get()` with format command `%j` is ranged from 000 to 365, but the definition in `std::strftime()` is from 001 to 366
2016-06-27 06:26:03 +08:00
Wei-Ming Yang
cf8bc94ec7 fix a bug in ios_state_ptr<>::release()
It returns the deleted pointer.
2016-06-21 01:44:41 +08:00
Wei-Ming Yang
0c51bf4014 remove a redundant character
`boost::chrono::clock_string<boost::chrono::process_system_cpu_clock, char>::name()` returns `"process_systtem_clock"` that have a redundant character 't'.
2016-06-20 04:07:28 +08:00
Wei-Ming Yang
f056190f2f fix bugs in relational operators of process_times
`operator==` and `operator<` can't compare difference duration types very well.
2016-06-20 02:50:33 +08:00
Wei-Ming Yang
44264cac19 fix a mistake in process_times<Rep>::read()
In L202, the input stream will be used to retrieve values, but it does not ignore first character '{'
2016-06-19 17:29:28 +08:00