Commit Graph

142 Commits

Author SHA1 Message Date
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
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
Marek Kurdej
df670ade19 Remove trailing whitespace. 2015-08-26 17:33:02 +02: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
f73cfe3775 Removed unused demangle() function. 2014-09-16 14:15:04 +04:00
Jürgen Hunold
2bf44a75bc include io.hpp for streaming operators 2014-08-22 11:44:17 +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
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
54c596ab5c Merge the units/autoprefix branch back to the trunk. Fixes #3660. Fixes #3707
[SVN r62532]
2010-06-07 23:49:52 +00:00
Steven Watanabe
281271d883 Minor cleanup/doc tweaks
[SVN r53125]
2009-05-20 00:55:43 +00:00
Steven Watanabe
2104806391 Clean up Jamfiles
[SVN r49998]
2008-11-28 21:16:48 +00:00
Steven Watanabe
81bf9de4ad Merge changeset 47937 from the release branch
[SVN r47938]
2008-08-01 18:05:45 +00:00
Steven Watanabe
b60f7d07b0 Reduced the number of template instantiations
[SVN r46632]
2008-06-24 03:04:49 +00:00
Steven Watanabe
60bff01a0b Hook up Units documentation
[SVN r46544]
2008-06-20 03:57:42 +00:00
Matthias Schabel
af82085e43 add example of use with Boost.Lambda
[SVN r46491]
2008-06-18 20:32:25 +00:00
Steven Watanabe
c0def9821b Removed is_implicitly_convertible
[SVN r46151]
2008-06-05 02:54:01 +00:00
Steven Watanabe
ddd1841097 Removed tabs
[SVN r46073]
2008-06-03 04:17:01 +00:00
Steven Watanabe
a2f61bec93 Workaround for msvc ADL bug
[SVN r46072]
2008-06-03 03:39:32 +00:00
Matthias Schabel
b1bebdde91 update documentation
[SVN r46029]
2008-06-01 17:47:45 +00:00
Matthias Schabel
fc27bd1d60 nothing wrong, just didn't understand the code at 3am...
[SVN r46015]
2008-06-01 16:23:06 +00:00
Matthias Schabel
9225505b1c remove stringstream stuff, minor fixes/updates
[SVN r46011]
2008-06-01 08:42:05 +00:00
Matthias Schabel
5222eef795 something funky going on here...need to fix
[SVN r46006]
2008-06-01 08:31:29 +00:00
Steven Watanabe
3401b59037 Fixes to the Unit documentation
[SVN r45991]
2008-05-31 21:36:28 +00:00
Matthias Schabel
d3099d2f3f add a typename_format formatter that outputs the unit typename (somewhat simplified, demangled on GCC only)
[SVN r45835]
2008-05-27 21:42:22 +00:00
Matthias Schabel
0095a7fb23 preliminary raw_format stuff (not working)
[SVN r45821]
2008-05-27 17:16:48 +00:00
Matthias Schabel
ba5e10127b note corrected behavior
[SVN r45808]
2008-05-27 03:55:38 +00:00
Steven Watanabe
66bcbcc231 Fixed copyright/licence
[SVN r45806]
2008-05-27 02:28:09 +00:00
Steven Watanabe
46d670be61 Removed tabs
[SVN r45805]
2008-05-27 02:09:20 +00:00
Steven Watanabe
587f865a12 io fixes
[SVN r45800]
2008-05-26 23:10:28 +00:00
Matthias Schabel
31777c4dfc note that we don't wan't symbol/name_string to work for quantities
[SVN r45797]
2008-05-26 22:55:50 +00:00
Steven Watanabe
a1a7e6fcb2 Added missing #includes
[SVN r45793]
2008-05-26 21:25:38 +00:00
Matthias Schabel
639ba63a13 fix type name demangling and replace boost regex with boost string_algo
[SVN r45787]
2008-05-26 19:48:23 +00:00
Matthias Schabel
cd8286dc77 minor tweaks
[SVN r45780]
2008-05-26 17:34:33 +00:00
Matthias Schabel
4e7ea1ff48 fix some problems with output
scaled unit/quantity output still has bugs, demonstrated in examples/composite_output.cpp

[SVN r45776]
2008-05-26 17:18:02 +00:00
Matthias Schabel
87000d9d6b rework I/O to use name_string and symbol_string free functions to create string representation of unit.
almost everything works, except a minor problem with scaled quantities

[SVN r45761]
2008-05-26 03:34:42 +00:00
Matthias Schabel
d79ae695a5 preliminary stuff for name_string/symbol_string
[SVN r45758]
2008-05-26 01:00:14 +00:00
Matthias Schabel
6d70e4f71e demo of problem with current method of overloading operator<< for unit output
[SVN r45751]
2008-05-25 21:00:32 +00:00
Steven Watanabe
0f1b618be2 Renamed dimension_list to list because its being used all over the place for lots of other purposes as well...
[SVN r45735]
2008-05-24 19:41:19 +00:00
Steven Watanabe
d63cd50345 Removed tabs
[SVN r45654]
2008-05-22 13:51:17 +00:00
Steven Watanabe
cbaf6b9acd Grrr... msvc 9.0 finds boost::math::pow by ADL
[SVN r45635]
2008-05-22 03:45:34 +00:00
Matthias Schabel
ffa1c04eaf shouldn't need explicit namespace qualification of pow now
[SVN r45597]
2008-05-21 05:33:34 +00:00
Steven Watanabe
1514b8a4c0 Added unit scaling and updated metric prefixes accordingly
[SVN r45595]
2008-05-21 04:53:12 +00:00
Matthias Schabel
1778849826 refactor physical dimensions out of SI electromagnetic units into separate physical_dimensions headers
fix namespace issue in examples/quaternion.cpp

[SVN r45593]
2008-05-21 03:59:19 +00:00
Matthias Schabel
a51156aa4b change to use base_unit::unit_type and get_system<>
[SVN r45590]
2008-05-20 21:30:29 +00:00
Steven Watanabe
006997a3fb Added missing calls to reduce_unit
[SVN r45563]
2008-05-19 20:24:28 +00:00
Matthias Schabel
6a43b40cd7 minor
[SVN r45562]
2008-05-19 20:17:03 +00:00
Matthias Schabel
7b23b5b961 rename namespace CODATA -> namespace codata for consistency
[SVN r45561]
2008-05-19 20:08:57 +00:00