feat: preventing possible future units crash when using namespace std;

Resolves #317
This commit is contained in:
Mateusz Pusz committed 2022-12-29 20:18:48 +01:00
1 parent 6b72dd39c1
commit 2cf736a1e6
123 files changed
+1205 -1092

No files matched your search

+8 -8
View File
@@ -20,17 +20,17 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/systems/isq_angle/isq_angle.h>
#include <units/systems/si/unit_symbols.h>
#include <mp_units/systems/isq_angle/isq_angle.h>
#include <mp_units/systems/si/unit_symbols.h>
namespace {
using namespace units;
using namespace units::si::unit_symbols;
using namespace units::angular::unit_symbols;
using units::angular::unit_symbols::rad;
using units::angular::unit_symbols::sr;
using enum units::quantity_character;
using namespace mp_units;
using namespace mp_units::si::unit_symbols;
using namespace mp_units::angular::unit_symbols;
using mp_units::angular::unit_symbols::rad;
using mp_units::angular::unit_symbols::sr;
using enum mp_units::quantity_character;
[[nodiscard]] consteval bool verify(QuantitySpec auto q, quantity_character ch, Unit auto... units)
{