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
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
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
81bf9de4ad
Merge changeset 47937 from the release branch
...
[SVN r47938]
2008-08-01 18:05:45 +00:00
Steven Watanabe
ddd1841097
Removed tabs
...
[SVN r46073]
2008-06-03 04:17:01 +00:00
Matthias Schabel
9225505b1c
remove stringstream stuff, minor fixes/updates
...
[SVN r46011]
2008-06-01 08:42:05 +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
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
Steven Watanabe
d63cd50345
Removed tabs
...
[SVN r45654]
2008-05-22 13:51:17 +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
Steven Watanabe
72903d3854
Cleared up regressions
...
[SVN r45551]
2008-05-19 18:26:19 +00:00
Matthias Schabel
4d516addf2
add BIPM official SI symbols from http://www1.bipm.org/en/si/si_brochure/chapter2/2-2/table3.html and some from http://www1.bipm.org/en/si/si_brochure/chapter2/2-2/table4.html
...
[SVN r45536]
2008-05-19 07:36:47 +00:00
Matthias Schabel
cab5ae25df
move SI trig functions into cmath.hpp
...
[SVN r45516]
2008-05-19 01:10:08 +00:00
Matthias Schabel
e4bcde0076
*** MAJOR ***
...
potentially breaking changes : rename SI/CGS namespaces to lowercase
remove some non-SI units (mostly obscure)
move base_units into boost/units
move physical_dimensions into boost/units
improved base_units for non-SI
[SVN r45508]
2008-05-19 00:30:13 +00:00
Steven Watanabe
817a474701
Made examples pass on como 4.3.3
...
[SVN r45400]
2008-05-15 19:07:57 +00:00
Matthias Schabel
80ffd42077
update copyright notices, minor fixes in non-SI units
...
[SVN r45390]
2008-05-15 15:39:02 +00:00
Steven Watanabe
3f2dc504da
Reduced examples to 80 columns
...
[SVN r42870]
2008-01-19 22:35:35 +00:00
Steven Watanabe
24e2221ded
New examples--rename old ones
...
[SVN r38706]
2007-08-16 00:54:21 +00:00