19 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
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
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
Daniel James
9b5d99078e Fix broken copyright urls. Fixes #1573.
[SVN r43422]
2008-02-27 18:51:14 +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
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
039d89c800 update exceptions for local time code
[SVN r27355]
2005-02-13 19:51:27 +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
b27dfd4666 add additional tests
[SVN r26653]
2005-01-09 23:06:20 +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
2b8a54a05a first versions of local_time tests
[SVN r24861]
2004-09-02 04:21:30 +00:00