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

+2 -2
View File
@@ -20,11 +20,11 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#include <units/bits/ratio.h>
#include <mp_units/bits/ratio.h>
namespace {
using namespace units;
using namespace mp_units;
static_assert(ratio(2, 4) == ratio(1, 2));