Commit Graph

356 Commits

Author SHA1 Message Date
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
Vicente J. Botet Escriba
7a2b17b6d7 Merge branch 'develop' of github.com:boostorg/chrono into develop 2016-05-04 23:58:40 +02:00
Vicente J. Botet Escriba
6f34fae179 Add test for Ref #12176. 2016-05-04 23:51:03 +02:00
Andrey Semashev
09502b1bd5 Updated included headers from Boost.WinAPI to avoid using deprecated headers. 2016-01-31 22:06:31 +03:00
Vicente J. Botet Escriba
533851116f add support for custom clocks #10631. 2015-09-10 19:42:18 +02:00
Vicente J. Botet Escriba
ea663180ee Avoid of unsafe staticdata. 2015-09-04 00:19:12 +02:00
Vicente J. Botet Escriba
6c7ff6678e add BOOST_CHRONO_DURATION_DEFAULTS_TO_ZERO. Related to #11330. 2015-08-05 19:33:00 +02:00
Vicente J. Botet Escriba
c000f9b199 Don't use default template arguments in function templates without -std=c++11. 2015-03-16 19:40:45 +01:00
Vicente J. Botet Escriba
ad03bc31f4 Merge branch 'develop' 2015-02-18 19:27:43 +01:00
Vicente J. Botet Escriba
83b881fad4 manage representation that are not supported by num_put but defines operator<<. Related to #11012. 2015-02-18 19:09:02 +01:00
Vicente J. Botet Escriba
d08ef2352a fix io savers. 2015-02-17 01:27:18 +01:00
Vicente J. Botet Escriba
300c0c6963 Try to improve the situation respect to IO V2 with non integral representations, even if this doesn't take care of Rep=rational<int>. 2015-02-16 16:01:05 +01:00
Vicente J. Botet Escriba
f764107d9c Merge branch 'develop' 2015-01-24 08:51:32 +01:00
Vicente J. Botet Escriba
d7478b9f7a move from math to integer for gcd(). 2015-01-14 20:14:53 +01:00
Vicente J. Botet Escriba
8cd5da0dda Merge branch 'develop' 2014-12-10 23:11:02 +01:00
Vicente J. Botet Escriba
9885be7ec0 replace noexcept by BOOST_NOEXCEPT for compilers that don't provide it yet. 2014-11-11 16:08:12 +01:00
Vicente J. Botet Escriba
6faac3febb try to take care of #10778. 2014-11-11 02:06:53 +01:00
Vicente J. Botet Escriba
7f1769140f Merge branch 'develop' 2014-09-20 16:08:27 +02:00
Vicente J. Botet Escriba
99673b3324 replace dependency on Boost.Interprocess by Boost.Move for unique_ptr usage. 2014-09-13 23:45:08 +02:00
Vicente J. Botet Escriba
99db2bf035 Merge branch 'develop' 2014-07-19 17:07:49 +02:00