forked from mpusz/mp-units
refactor: 💥 q_* UDL renamed to _q_*
We had some fun exploring the STD UDLs for potential collisions, we have learnt our lesson and know how to proceed. Now is high time to start behaving and obeying C++ rules.
This commit is contained in:
@@ -31,8 +31,8 @@ using namespace units::physical::si::literals;
|
||||
|
||||
int main()
|
||||
{
|
||||
auto torque = 20.0q_Nm;
|
||||
auto energy = 20.0q_J;
|
||||
auto torque = 20.0_q_Nm;
|
||||
auto energy = 20.0_q_J;
|
||||
|
||||
physical::Angle auto angle = torque / energy;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user