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:
@@ -33,5 +33,5 @@ constexpr Speed auto avg_speed(Length auto d, Time auto t)
|
||||
int main()
|
||||
{
|
||||
using namespace units::physical::si::literals;
|
||||
std::cout << "Average speed = " << avg_speed(240.q_km, 2q_h) << '\n';
|
||||
std::cout << "Average speed = " << avg_speed(240._q_km, 2_q_h) << '\n';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user