Subject: [Boost-bugs] [Boost C++ Libraries] #12089: Documentation: units: Errors in Why Homogeneous Systems
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-03-22 15:31:44
#12089: Documentation: units: Errors in Why Homogeneous Systems
-------------------------------------------+-----------------------------
Reporter: Chris Lesiak <chris.lesiak@â¦> | Owner: matthiasschabel
Type: Bugs | Status: new
Milestone: To Be Determined | Component: units
Version: Boost Development Trunk | Severity: Problem
Keywords: |
-------------------------------------------+-----------------------------
The FAQ entry on homogeneous systems asks the reader to consider the
following:
cout << sin(asin(180.0 * degrees));
There are two problems with this:
1. It won't compile because asin does not take an angle.
2. Even with the order of asin and sin swapped, the example is confusing
because it isn't clear if the results should be 180 degrees, or 0 degrees.
Better to use 90 degrees.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12089> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC