Glen Fernandes
deab2847c4
Merge pull request #48 from Kojoley/cease-dependence-on-serialization
...
Cease dependence on Serialization
2020-12-12 09:27:40 -05:00
Edward Diener
21c9dcaf3a
Changes for Embarcadero C++ clang-based compilers, targeting Boost 1.74 ( #47 )
...
* Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
* The mnemonic 'byte' is defined elsewhere, so use the full namespace.
* Using bu::information::byte once rather than fully qualified 'bu::information::byte' many times.
2020-08-25 13:08:04 +03:00
Nikita Kniazev
ac7d0475bc
Cease dependence on Serialization
2020-05-23 18:38:31 +03:00
Steven Watanabe
bf2c4d2586
A few fixes before merging this PR
...
* Revert most of the changes to examples, because ugly macros don't belong
in examples. Just use constexpr as appropriate.
* Revert Lambda changes as they're wrong and Boost.Lambda doesn't support
constexpr.
* Remove include of broken math_fwd.hpp.
2018-01-10 12:07:09 -07:00
Steven Watanabe
eb006137ef
Merge remote-tracking branch 'muggenhor/constexpr' into develop
2018-01-10 09:30:29 -07:00
petamas
bf84755be7
Fix sqrt for scaled units.
...
See details in https://svn.boost.org/trac10/ticket/10270
2018-01-02 17:22:23 +01:00
alfC
2653f8a862
define biot correctly as 10 Ampere
2016-09-01 13:38:00 -07:00
Giel van Schijndel
86dbd8c04b
Use constexpr for name() and symbol()
2016-08-15 00:14:15 +02:00
Giel van Schijndel
595390497c
Add constexpr support
...
Ensuring that:
* it still works as before on C++98 and C++03
* C++11 "strict" constexpr is used where possible
- requires replacing { R x; return f(x); } with { return f(R()); }
* C++14 "relaxed" constexpr is used only where otherwise impossible
- assignment operators
- functions who's implementations require more than a single return
statement
2016-08-15 00:14:14 +02:00
Dan Čermák
00c0e67170
updated physico-chemical constants to CODATA 2014 values
2016-08-12 11:56:40 +02:00
Jürgen Hunold
034f16bc26
Merge pull request #20 from mkurdej/fix-inspections-warnings
...
Fix inspection warnings
2016-08-12 10:56:39 +02:00
Jürgen Hunold
3191a02513
Remove extra semicolon after statement
...
Found by clang's -Wextra-semi warning
2016-08-12 10:08:25 +02:00
Jürgen Hunold
47885b2a15
Avoid unused parameter warnings
2016-02-06 12:43:29 +01:00
Marek Kurdej
df670ade19
Remove trailing whitespace.
2015-08-26 17:33:02 +02:00
Marek Kurdej
47782f893c
Fix inspection warnings from http://boost.cowic.de/rc/docs-inspect-develop.html#units .
2015-08-26 17:31:27 +02:00
Jürgen Hunold
c532e515f6
Remove dependency on deprecated type_traits implementation details
...
ice_or and and ice_and are workaround for non-conforming compilers.
So just use operator || and && instead.
2015-05-27 20:57:05 +02:00
Steven Watanabe
423adb31c1
Remove incorrect indirection.
2015-02-25 11:38:35 -07:00
Peter Dimov
9c291bc71b
Replace math::static_gcd references with integer::static_gcd
2015-01-18 19:34:52 +02:00
Marek Kurdej
45058c08f7
Fix header guards and namespace trailing comments.
2014-11-03 13:59:10 +01:00
Jürgen Hunold
0bbc9a4697
Merge pull request #12 from mkurdej/fix/units-systems-information
...
Add information system units (bit, nat, ...)
2014-10-10 19:19:27 +02:00
Jürgen Hunold
31af6a68ff
Merge pull request #2 from Lastique/patch-1
...
Port to Boost.Core demangle().
Thanks for the patch and the good discussion.
2014-09-16 16:06:15 +02:00
Andrey Semashev
e7a6525f09
Worked around C4127 warning with MSVC.
2014-09-16 14:11:03 +04:00
Marek Kurdej
4d7b893e60
Fix test_headers: #include <boost/units/quantity.hpp> was missing and codata headers were not self-contained.
...
Move quantity template class default argument from quantity.hpp to units_fwd.hpp.
2014-08-26 14:43:25 +02:00
Marek Kurdej
96f04f1e48
Cosmetic change.
2014-08-26 09:33:50 +02:00
Marek Kurdej
8280a87225
Add IEC 80000-13:2008 binary prefixes and test their formatting with boost::units::binary_prefix.
...
Signed-off-by: Marek Kurdej <mkurdej@users.noreply.github.com >
2014-08-25 09:41:24 +02:00
Marek Kurdej
ffefa65ab2
[boost] [units] Added zebi and yobi IEC prefixes and corresponding tests.
2014-08-01 09:54:48 +02:00
Robin Eckert
e358e15c83
add support for C++11 numeric_limits::max_digits10 and ::lowest
2014-07-19 11:09:32 +02:00
Erik Erlandson
1932dc718c
New unit system <boost/units/systems/information.hpp>
...
Defines base units and system units for: bit, byte, nat, hartley and shannon,
and scale units for binary prefixes kibi, mebi, gibi, tebi, pebi, exbi.
2014-06-18 14:14:12 -07:00
Andrey Semashev
3fafb02452
Port to Boost.Core demangle()
...
The change does several things:
- Makes use of the common demangle() implementation in Boost.Core.
- Fixes a memory leak if std::string constructor throws.
- Removes the dependency on Boost.Algorithm.
- Makes the behavior consistent for platforms with and without __cxa_demangle().
2014-06-11 22:39:51 +04:00
Stephen Kelly
5eff6b3ff7
Remove BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
...
Process #ifdef...#endif blocks.
[SVN r86243]
2013-10-11 23:13:10 +00:00
Stephen Kelly
03642ea547
Units: Remove obsolete GCC version check.
...
[SVN r86118]
2013-10-01 08:48:23 +00:00
Stephen Kelly
49094ef89b
Remove use of BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
...
[SVN r85893]
2013-09-25 10:28:28 +00:00
Steven Watanabe
5270414ebb
Make pow and root work for constants.
...
[SVN r75814]
2011-12-05 16:56:55 +00:00
Steven Watanabe
36709d4d4f
Never return one from conversion_factor.
...
[SVN r74159]
2011-08-30 15:07:48 +00:00
Steven Watanabe
7525b0c564
Fix checking for double registration with clang in C++0x mode. Fixes #5436 .
...
[SVN r71081]
2011-04-07 14:50:53 +00:00
Steven Watanabe
e4fd614972
Simplify the dispatching. Hopefully this will help intel.
...
[SVN r70795]
2011-03-31 18:28:33 +00:00
Matthias Schabel
001dec7fe6
remove spurious inclusion of <boost/units/io.hpp> and <iostream> in various unit system header files
...
[SVN r69643]
2011-03-08 01:23:00 +00:00
Steven Watanabe
8f866ba0de
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
c19d963752
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
Steven Watanabe
58fbd6a362
Don't require std::abs for printing quantities. Fix test_output on Linux. Fixes #4785 .
...
[SVN r67558]
2011-01-02 02:33:14 +00:00
Steven Watanabe
85497f462f
add missing return
...
[SVN r66801]
2010-11-27 19:32:39 +00:00
Steven Watanabe
6864e75c09
Clean up some doc issues.
...
[SVN r63020]
2010-06-16 14:23:17 +00:00
Steven Watanabe
7160bc4c54
Use long instead of int to match iword and avoid warnings.
...
[SVN r63012]
2010-06-16 03:32:16 +00:00
Steven Watanabe
2e74b803c3
Add overloads of inverse trig functions that take heterogeneous units and return the angles in radians. Fixes #3865
...
[SVN r62533]
2010-06-08 01:00:27 +00:00
Steven Watanabe
54c596ab5c
Merge the units/autoprefix branch back to the trunk. Fixes #3660 . Fixes #3707
...
[SVN r62532]
2010-06-07 23:49:52 +00:00
Matthias Schabel
c7fb165c3c
add base unit for pound-force
...
[SVN r56125]
2009-09-09 20:35:34 +00:00
Steven Watanabe
bf5371fddc
Use base_unit_info when computing the name of a scaled base_unit. Fixes #3360 .
...
[SVN r55698]
2009-08-21 13:19:36 +00:00
Steven Watanabe
c11358661f
Fix bug in the code for finding a basis for a set of base units.
...
[SVN r55573]
2009-08-13 18:50:21 +00:00
Steven Watanabe
a141d13861
Fix bug in handling of chained conversions involving a non-base homogeneous unit.
...
[SVN r55151]
2009-07-25 05:30:08 +00:00
Steven Watanabe
204b1f1d62
Loosen the requirements on atan2. Fixes #3258
...
[SVN r54873]
2009-07-10 21:26:57 +00:00