Unit Conversion and Dimensional Analysis Library 3.6.1
A compile-time, header-only C++23 dimensional-analysis library
Loading...
Searching...
No Matches
error_trig-needs-angle.gcc13

readable_trig_needs_angle.cpp:8:16: error: cannot convert ‘units::length::meters<double>’ to ‘double’
8 | auto bad = sin(1.0_m); // ill-formed: sin expects an angle, not a length
| ^~~~~
| |
| units::length::meters<double>
In file included from /usr/include/math.h:443,
from /usr/include/c++/15/cmath:55,
from /e/workspace/units/include/units/core.h:60,