Commit Graph

18 Commits

Author SHA1 Message Date
Jeff Garland
e26fd2ed98
pull develop to master for boost 1.72 (#117)
* Synchronize each miscrosec test to the next second (#109)

* Synchronize each miscrosec test to the next second

The aim is to avoid false positives in test_microsec when the seconds,
minutes or hours change during time read between the second_clock and
the microsec_clock.

* Improved readability of the microcec_time_clock test

* Improve performance of adding and subtracting time durations from a ptime. (#99)

Modifying ptime objects by adding and subtracting time durations was
inefficient because it extracted the date and time of day and then
re-constructed a ptime using the date and modified time of day.

This can be avoided by using the existing time_system utilities which
perform the operation by adjusting the number of ticks.

Performance is improved by a factor of 48 on my system.

* Update CI Scripts

* Add time_duration helper functions: (#113)

1. is_positive()
  - Return boolean value to indicate whether or not time duration is
    positive.
2. is_zero()
  - Return boolean value to indicate whether or not time duration is
    zero.
3. abs()
  - Return a time_duration which is the absolute value of time
    duration.

Added documentation for these helper functions and improved existing
documentation to indicate constness, return values or static
functions.

* Cease dependence on MPL (#115)
2019-12-03 17:06:28 -07:00
James E. King III
f35bbbe906 trac-3606: fix remaining msvc /W4 complaints (msvc-10.0 and up) 2018-01-17 09:22:22 -05:00
Andrey Semashev
82f61328b2 Fixed "invalid character" warnings from clang.
The character was indeed not a valid UTF-8 character. Presumably, it is a
valid character in some national encoding, but Unicode is ubiquitous nowdays
and the compiler is not able to know the encoding anyway. Thus the commit
converts the character to a hex-escaped UTF-8 representation of character
U+00FC ('ü').
2017-08-10 19:01:45 +03:00
Marshall Clow
072b4e1b61 Fix several 'iterating past the end' bugs in Boost.DateTime; Refs #9216
[SVN r86230]
2013-10-10 15:43:31 +00:00
Marshall Clow
318a6ce7ea Fix typo in test case; Refs #6513
[SVN r80709]
2012-09-26 16:44:40 +00:00
Andrey Semashev
8e9f05161d Improved diagnostics in case of test failure.
[SVN r53528]
2009-06-01 09:02:43 +00:00
Andrey Semashev
4a238482e8 testfrmwk.hpp moved to the tests directory. It was not a part of the library public interface and should not be seen by users.
[SVN r49932]
2008-11-25 20:36:52 +00:00
Andrey Semashev
462d59604b Fixed a possible crash in gregorian::special_value_from_string if the string did not represent a valid special value. The find_match function now accepts the size of lookup tables rater than the maximum index.
[SVN r49875]
2008-11-22 13:40:54 +00:00
Andrey Semashev
b59c3dab04 Fixed exception handling that led to exception type slicing in some cases and simply inefficient code in others.
[SVN r49610]
2008-11-06 15:43:07 +00:00
Daniel James
9b5d99078e Fix broken copyright urls. Fixes #1573.
[SVN r43422]
2008-02-27 18:51:14 +00:00
Jeff Garland
73ddcd7ead add tests for day of month parsing problem
[SVN r30817]
2005-09-05 21:10:09 +00:00
Jeff Garland
bc754d907c add tests for fix to input parsing. Tests for bug that would cause an extra character to be consumed in the stream when parsing special value cases. In particular something like a date period like [2005-Jun-10/not-a-date-time] would fail to parse correctly even though this can be constructed and output just fine
[SVN r29854]
2005-07-01 03:00:34 +00:00
Jeff Garland
54e7c78df6 fix bug with exception handling in new i/o code -- only throw exceptions if stream bits set correctly
[SVN r29823]
2005-06-28 13:12:24 +00:00
Jeff Garland
bb21d778a0 updates to test for %% bugfix -- removal of references to ptime_facet in tests
[SVN r29622]
2005-06-16 13:23:38 +00:00
Jeff Garland
43839c4d19 Changes to tests for i/o fixes -- close some holes. Also rename of custom timezone
[SVN r28629]
2005-05-03 14:27:05 +00:00
Jeff Garland
7635f9334d add facet tests the check setting of name strings
[SVN r28441]
2005-04-23 21:15:06 +00:00
Jeff Garland
44fec40c5f clear up some test errors for compilers that don't support the new 1.33 fancy i/o facts
[SVN r28091]
2005-04-10 23:47:38 +00:00
Jeff Garland
82fbd7f7df next round of major updates to format-based input-output. Adds various parsers to support full date input
[SVN r27797]
2005-03-24 13:07:42 +00:00