mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
Dependency on gsl-lite removed as it causes issues with compiler-explorer
This commit is contained in:
@@ -45,8 +45,7 @@ class UnitsConan(ConanFile):
|
||||
exports = ["LICENSE.md"]
|
||||
settings = "os", "compiler", "build_type", "arch"
|
||||
requires = (
|
||||
"cmcstl2/2019.09.09@mpusz/stable",
|
||||
"gsl-lite/0.33.0@nonstd-lite/stable"
|
||||
"cmcstl2/2019.09.09@mpusz/stable"
|
||||
)
|
||||
scm = {
|
||||
"type": "git",
|
||||
|
@@ -54,7 +54,6 @@ target_compile_features(units INTERFACE cxx_std_20)
|
||||
target_link_libraries(units
|
||||
INTERFACE
|
||||
CONAN_PKG::cmcstl2
|
||||
CONAN_PKG::gsl-lite
|
||||
)
|
||||
target_include_directories(units
|
||||
INTERFACE
|
||||
|
@@ -23,6 +23,10 @@
|
||||
#pragma once
|
||||
|
||||
#include <experimental/ranges/concepts>
|
||||
#include <exception>
|
||||
|
||||
|
||||
#define Expects(cond) if(!(cond)) ::std::terminate();
|
||||
|
||||
namespace std {
|
||||
|
||||
|
@@ -25,7 +25,6 @@
|
||||
#include <units/unit.h>
|
||||
#include <units/bits/concepts.h>
|
||||
#include <limits>
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
namespace std::experimental::units {
|
||||
|
||||
|
@@ -22,10 +22,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/hacks.h>
|
||||
#include <type_traits>
|
||||
#include <numeric>
|
||||
#include <cstdint>
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
namespace std::experimental::units {
|
||||
|
||||
|
@@ -27,7 +27,6 @@ function(add_metabench_test target name erb_path range)
|
||||
target_link_libraries(${target}
|
||||
PUBLIC
|
||||
CONAN_PKG::cmcstl2
|
||||
CONAN_PKG::gsl-lite
|
||||
)
|
||||
endfunction()
|
||||
|
||||
|
@@ -22,10 +22,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <exception>
|
||||
#include <type_traits>
|
||||
#include <numeric>
|
||||
#include <cstdint>
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
#define Expects(cond) if(!(cond)) ::std::terminate();
|
||||
|
||||
namespace std::experimental::units {
|
||||
|
||||
|
Reference in New Issue
Block a user