Dependency on gsl-lite removed as it causes issues with compiler-explorer

This commit is contained in:
Mateusz Pusz
2019-09-10 20:07:48 +02:00
parent 70a90b4ae0
commit 497a13da1a
7 changed files with 9 additions and 7 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -23,6 +23,10 @@
#pragma once
#include <experimental/ranges/concepts>
#include <exception>
#define Expects(cond) if(!(cond)) ::std::terminate();
namespace std {

View File

@@ -25,7 +25,6 @@
#include <units/unit.h>
#include <units/bits/concepts.h>
#include <limits>
#include <gsl/gsl-lite.hpp>
namespace std::experimental::units {

View File

@@ -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 {

View File

@@ -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()

View File

@@ -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 {