mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Fix "'dimensionless' ambiguous symbol" error (#2382)
A typedef for units::dimensionless::dimensionless is defined, which conflicted with the namespace when we added "using namespace dimensionless". This patch reverts the "using namespace" directive. "using" directives were added to pull three of the four relevant typedefs but avoid the "dimensionless" type conflict. This issue was first introduced in #2301.
This commit is contained in:
@@ -4854,5 +4854,8 @@ using namespace velocity;
|
||||
using namespace acceleration;
|
||||
using namespace angle;
|
||||
using namespace voltage;
|
||||
using namespace dimensionless;
|
||||
|
||||
using dimensionless::scalar;
|
||||
using dimensionless::scalar_t;
|
||||
using dimensionless::dimensionless_t;
|
||||
} // namespace units
|
||||
|
||||
Reference in New Issue
Block a user