Martin Hořeňovský 0354d50278 Added templated constructor to C++11 Approx
When using C++11, comparison operators are already templated to take
anything that can be explicitly converted to double, but constructor
took only doubles. This lead to warnings when an `Approx` was
constructed from floats, which was problematic for some users.

Since just adding float constructor would be a large breaking change, as
suddenly `Approx( 1 )` would become ambiguous, I added a templated
constructor that will take anything that is explicitly convertible to
double. This has the added benefit of allowing constructing `Approx`
instances from instances of strong typedefs, ie allowing
`calculated_temp == Approx( known_temp)`.

Closes #873
2017-04-04 15:19:15 +02:00
..
2014-03-17 18:40:58 +00:00
2017-02-14 09:16:54 +00:00
2017-02-13 14:12:22 +01:00
2017-03-06 09:23:31 +00:00
2017-03-13 15:40:21 +00:00
2014-05-19 18:57:14 +01:00
2017-04-04 11:31:13 +02:00
2017-03-13 15:40:21 +00:00
2015-07-28 18:55:11 +01:00
2017-02-13 14:12:22 +01:00
2014-03-17 18:40:58 +00:00