42 Commits

Author SHA1 Message Date
Andrey Semashev
d335a54e9f Add missing includes and fix special_value_from_string definition (#144)
* Added a test generator for whether all public headers are self-contained.

The generator creates a compile test for every public header, unless
BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS environment variable
is set to 1.

* Only enable self-contained header tests on a few jobs.

There is no point in performing self-contained header tests on every compiler
configuration, so running them only on some saves CI time.

* Make public headers self-contained.

This commit:

- Adds missing includes.
- Adjusts gregorian namespace qualification in a few places to use use
  equivalent symbols from date_time and not have to include gregorian
  headers.
- Converts tabs to spaces and trims trailing spaces.

This makes the self-contained header tests pass on Linux.

* Move special_value_from_string definition to parsers.hpp.

This resolves different attributes applied to the function definition
in parsers.hpp and greg_month.hpp. The function is now inline and defined
in parsers.hpp.

Also, the commit converts tabs to spaces and trims trailing spaces.

Fixes https://github.com/boostorg/date_time/issues/143.

* Convert tabs to spaces and trim trailing spaces.
2020-04-05 07:27:27 -07:00
Jeff Garland
d8c7a59ed9 pull request to make date-time all inline (#135)
* remove legacy to_simple_string and prefer streaming in test code

* driveby fix to clean up self-assign compiler warnings in test code

* driveby fix to clean up unused variable compiler warnings in test code

* another update for issue #123 (constexpr) to allow time_duration constexpr to work

* final updates to make date_time free of library - issue #134
2020-03-15 04:27:39 -07:00
James E. King III
e0da18162a trac-9882: fix gcc -Wshadow errors and warnings enabled by trac-3606 2018-01-17 09:22:22 -05: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
Peter Dimov
2434bc8f4d Pass input files properly via the run rule 2017-11-13 21:20:41 +02:00
Andrey Semashev
266e6cc8e1 Silence MSVC warnings about unused exception variables in tests. 2017-08-28 20:06:24 +03:00
Jeff Garland
97c2acd867 minor updates to suppress g++4.6 warnings
[SVN r79212]
2012-07-01 17:04:48 +00:00
Steven Watanabe
5c9a890972 Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
[SVN r68168]
2011-01-15 08:11:51 +00:00
Bryce Adelstein-Lelbach
d444c164c2 Replacing the use of <iomanip> with <boost/detail/iomanip.hpp> across Boost.
On Linux, GNU's libstdc++, which is the default stdlib for icc and clang,
cannot parse the <iomanip> header in version 4.5+ (which thankfully neither
compiler advises the use of yet), as it's original C++98-friendly
implementation has been replaced with a gnu++0x implementation.
<boost/detail/iomanip.hpp> is a portable implementation of <iomanip>, providing
boost::detail::setfill, boost::detail::setbase, boost::detail::setw,
boost::detail::setprecision, boost::detail::setiosflags and
boost::detail::resetiosflags. 



[SVN r68140]
2011-01-14 02:35:58 +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
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
Andrey Semashev
d170c71007 Fixed a number of misprints in the documentation, added change notes for
the latest commit. The tests are modified to support the latest changes.


[SVN r49506]
2008-11-01 10:36:57 +00:00
Daniel James
9b5d99078e Fix broken copyright urls. Fixes #1573.
[SVN r43422]
2008-02-27 18:51:14 +00:00
Jeff Garland
5becc5c309 test update to coorespond to new 2007 DST rules in US and new tz database.csv file
[SVN r37011]
2007-02-20 03:01:31 +00:00
Jeff Garland
cfea9b8090 remove obsolete file -- class renamed
[SVN r31457]
2005-10-25 03:52:30 +00:00
Jeff Garland
c83211770f add new tests to support wide chars in timezones
[SVN r31437]
2005-10-23 20:15:39 +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
6596484fb1 minor update to testcase to see if we can figure out why vc8 fails this test
[SVN r29228]
2005-05-26 12:37:49 +00:00
Jeff Garland
aadfbadf35 variety of fixes to clean up various compiler warnings -- particularly cw, vc8
[SVN r29189]
2005-05-25 14:16:15 +00:00
Jeff Garland
ea0e997bf5 add new test file for local time iterator
[SVN r28940]
2005-05-15 22:05:54 +00:00
Jeff Garland
431cb1cbf4 add new testfile for local time periods
[SVN r28939]
2005-05-15 21:22:10 +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
d13c4ec9f3 updates to fix serialization regression caused by changes to the serialization lib -- const value is required when archiving
[SVN r28456]
2005-04-24 05:53:01 +00:00
Jeff Garland
dd0c9127e0 test updates for local time input streaming
[SVN r28434]
2005-04-23 05:41:08 +00:00
Jeff Garland
ad38989a3a series of changes to support input/output for time zones
[SVN r28304]
2005-04-17 21:49:11 +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
Jeff Garland
aac4bbfd98 changes for vc7 failure related to shared_ptr compares
[SVN r27743]
2005-03-19 18:42:14 +00:00
Jeff Garland
527c482a9f put in a fix to retry if the tz_database file cannot be found -- this should fix regression tests that are run from boost/status directory
[SVN r27635]
2005-03-13 19:49:35 +00:00
Jeff Garland
c6292bcabc fix test so it can find tz csv file when run from regression directory
[SVN r27563]
2005-03-07 03:53:44 +00:00
Jeff Garland
039d89c800 update exceptions for local time code
[SVN r27355]
2005-02-13 19:51:27 +00:00
Jeff Garland
bec5356557 add various julian date tests for posix timezones
[SVN r27354]
2005-02-13 19:50:25 +00:00
Jeff Garland
31383c0c8e series of test changes associated with new facet code
[SVN r26941]
2005-01-30 21:04:49 +00:00
Jeff Garland
f82a252c95 add full name tests for tz database - part of 11-03 io patchset
[SVN r26660]
2005-01-10 04:12:31 +00:00
Jeff Garland
09b747bb1c add new tests for local time facet 11-03 IO patchset
[SVN r26657]
2005-01-10 00:27:35 +00:00
Jeff Garland
b27dfd4666 add additional tests
[SVN r26653]
2005-01-09 23:06:20 +00:00
Jeff Garland
d43895dfea add new tests for clocks
[SVN r26114]
2004-11-04 12:45:07 +00:00
Jeff Garland
54111584c9 first version of a clock test for local times
[SVN r25715]
2004-10-13 18:56:29 +00:00
Jeff Garland
32954414b1 enhanced tests for changes to to_tm functions
[SVN r25618]
2004-10-07 22:30:16 +00:00
Jeff Garland
856addc8fb new constructor tests and gobs of other stuff
[SVN r25526]
2004-10-02 18:53:28 +00:00
Jeff Garland
83e4e6951f fix copyright
[SVN r25056]
2004-09-13 16:44:10 +00:00
Jeff Garland
300351689d various sept 5 updates
[SVN r24961]
2004-09-07 21:23:18 +00:00
Jeff Garland
2b8a54a05a first versions of local_time tests
[SVN r24861]
2004-09-02 04:21:30 +00:00