32 Commits

Author SHA1 Message Date
Benjamin Füldner
665f296c25 Operator constexpr (#239)
* Remove spaces from line endings...

* Add constexpr to return value of arithmetic operators.

* Drop support for gcc-4.x and Visual Studio 14 because they not fully support C++14 standard.

Co-authored-by: Nic Holthaus <nholthaus@gmail.com>
2020-10-07 19:09:50 -04:00
Nic Holthaus
3252189fbe V2.3.x (#107)
* added compound assignment operators: +=, -=, *=, /=. Closes #44.

* print undefined unit types in SI base units. Closes #38. Update constants to NIST 2014 CODATA recommendations.

* Reduce metaprogramming boilerplate

* workaround for vs2013 internal compiler error

* added data and data transfer units. Closes #46.

* update doxyfile.in to v2.2.0

* add constexpr std::array test

* add julian and gregorian year definitions. Closes #29.

* added `value()` and `value_type` trait. Closes #56.

* fixes constexpr relational operator bug. Closes #63.

* improve compile time.

* removed some debug code.

* measure compile time

* Friend the linear scale units. Reduces compile time.

* add inline to pow() and abs() for being able to use units.h in different compilation units

* Revert "Friend the linear scale units. Reduces compile time."

This reverts commit e26fcd7d9b.

* Revert "add inline to pow() and abs() for being able to use units.h in different compilation units"

This reverts commit d42020e1de.

* add inline to pow() and abs() for being able to use units.h in different compilation units

* Test with Visual Studio 2017

* Another attempt at using Visual Studio 2017 in appveyor

* Build with VS2017

* add MSVC2017 badge

* started min/max

* fixes #65, fixes #71, fixes #76, fixes #79, fixes #80.  Adds documentation.

* fix for vs2013, gcc

* updated docs

* fix for vs2013

* remove gcc warnings, add prefined unit defines

* min/max shouldn't be constexpr

* fix cmake

* more cmake fixes

* numeric_limits namespace

* fixes #77.

* fixes #75 & documentation

* fixed merge issues

* for Morwenn

* Make the project work with both ninja and msvc generators on windows

* Fixes #106. Locale aware `to_string` conversions.

* Fixes #105. Unary operators. Also removes VS 2013 testing (and support)

* Fixes #87. Don't include `to_string()` when iostream is disabled.

* fix a mistake in the unary +/-

* Add constexpr name/abbreviation member functions which don't require iostream.

* Fixes for linux build
2018-04-21 15:59:22 -04:00
Nic Holthaus
f20b07e4a5 cmake improvements (#24)
- adds an `INTERFACE` cmake library for easier consumption as a subproject
- Removes GNU dependencies
- Updates google test to 1.8.0 and substantially simplifies the google test build
- adds caching to our CI system to improve build speed
- Add options to avoid building the unit tests/documentation (this will be helpful for subdirectories)
2016-10-07 09:27:45 -04:00
Nic Holthaus
15385ffdf2 fix travis env vars 2016-09-27 22:26:27 -04:00
Nic Holthaus
01c6bcc12b switch travis to trusty 2016-09-27 22:22:25 -04:00
Nic Holthaus
90c411c6fc add clang build 2016-09-27 22:12:38 -04:00
nholthaus
f9908b2258 blacklisted documantation and gh-pages builds 2016-04-02 09:47:29 -04:00
Nic Holthaus
b3edbc2ac3 Update .travis.yml 2016-03-29 18:48:32 -04:00
nholthaus
8e028fcb42 yet another try at coveralls 2016-03-29 18:46:38 -04:00
nholthaus
1bc93c0015 yet another try at coveralls 2016-03-29 18:44:02 -04:00
Nic Holthaus
e340573d1a another try at gettings coveralls data to upload 2016-03-29 18:16:39 -04:00
Nic Holthaus
ee74e8dea2 Update .travis.yml 2016-03-22 07:01:19 -04:00
Nic Holthaus
19083a0921 Update .travis.yml 2016-03-21 20:15:35 -04:00
Nic Holthaus
1c7478f0d1 Update .travis.yml 2016-03-21 19:47:08 -04:00
Nic Holthaus
6986e066f9 Update .travis.yml 2016-03-21 19:42:43 -04:00
Nic Holthaus
4d8fdccc6a Update .travis.yml 2016-03-21 19:38:41 -04:00
Nic Holthaus
5529e2cd62 Update .travis.yml 2016-03-21 19:34:53 -04:00
Nic Holthaus
9e94322dea Update .travis.yml 2016-03-21 19:23:58 -04:00
Nic Holthaus
764190747b Update .travis.yml 2016-03-21 19:19:55 -04:00
Nic Holthaus
d5d2224b35 Update .travis.yml 2016-03-21 19:15:14 -04:00
nholthaus
2e2d72e5c2 coveralls support take 2. 2016-03-21 18:41:15 -04:00
nholthaus
470d7477d4 first attempt at coveralls (code coverage) integration. 2016-03-21 18:26:32 -04:00
Nic Holthaus
638e7e2ea3 Update .travis.yml 2016-03-20 09:36:41 -04:00
Nic Holthaus
a9bc5bc010 Update .travis.yml 2016-03-20 09:31:12 -04:00
Nic Holthaus
8ba6ef7680 Update .travis.yml 2016-03-20 09:28:40 -04:00
Nic Holthaus
d268a4e9f7 Update .travis.yml 2016-03-20 09:26:09 -04:00
Nic Holthaus
0f32751a39 Update .travis.yml 2016-03-20 09:24:53 -04:00
Nic Holthaus
be59d8c51f Update .travis.yml 2016-03-20 09:23:09 -04:00
Nic Holthaus
40600fe32c Update .travis.yml 2016-03-20 09:16:06 -04:00
Nic Holthaus
e3f81e40d4 Update .travis.yml 2016-03-20 09:14:24 -04:00
Nic Holthaus
220b2d7d09 Update .travis.yml 2016-03-20 09:12:49 -04:00
Nic Holthaus
e1ec6c384f Create .travis.yml 2016-03-20 09:05:06 -04:00