mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-31 19:04:27 +02:00
fix: dependencies on cstdint
header fixed
This commit is contained in:
@@ -27,6 +27,10 @@
|
|||||||
#include <mp-units/bits/external/type_traits.h>
|
#include <mp-units/bits/external/type_traits.h>
|
||||||
#include <mp-units/bits/ratio.h>
|
#include <mp-units/bits/ratio.h>
|
||||||
|
|
||||||
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
|
#include <cstdint>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -22,10 +22,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
|
||||||
#include <cstdint>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mp_units::detail {
|
namespace mp_units::detail {
|
||||||
|
|
||||||
template<auto N>
|
template<auto N>
|
||||||
|
@@ -31,7 +31,6 @@
|
|||||||
#include <gsl/gsl-lite.hpp>
|
#include <gsl/gsl-lite.hpp>
|
||||||
#include <compare>
|
#include <compare>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
#include <cstdint>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if __cpp_lib_text_encoding
|
#if __cpp_lib_text_encoding
|
||||||
|
@@ -27,6 +27,10 @@
|
|||||||
#include <mp-units/bits/ratio.h>
|
#include <mp-units/bits/ratio.h>
|
||||||
#include <mp-units/bits/symbol_text.h>
|
#include <mp-units/bits/symbol_text.h>
|
||||||
|
|
||||||
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
|
#include <cstdint>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
@@ -33,6 +33,7 @@
|
|||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
#include <gsl/gsl-lite.hpp>
|
#include <gsl/gsl-lite.hpp>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
@@ -29,10 +29,6 @@
|
|||||||
#include <mp-units/quantity.h>
|
#include <mp-units/quantity.h>
|
||||||
#include <mp-units/unit.h>
|
#include <mp-units/unit.h>
|
||||||
|
|
||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
|
||||||
#include <cstdint>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace mp_units::detail {
|
namespace mp_units::detail {
|
||||||
|
|
||||||
template<typename Char>
|
template<typename Char>
|
||||||
@@ -409,6 +405,7 @@ class MP_UNITS_STD_FMT::formatter<mp_units::quantity<Reference, Rep>, Char> {
|
|||||||
if (*begin++ != ':') throw MP_UNITS_STD_FMT::format_error("`defaults-specs` should start with a `:`");
|
if (*begin++ != ':') throw MP_UNITS_STD_FMT::format_error("`defaults-specs` should start with a `:`");
|
||||||
do {
|
do {
|
||||||
auto c = *begin++;
|
auto c = *begin++;
|
||||||
|
// TODO check if not repeated
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case 'N':
|
case 'N':
|
||||||
begin = parse_default_spec(begin, end, rep_formatter_, rep_format_str_);
|
begin = parse_default_spec(begin, end, rep_formatter_, rep_format_str_);
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
|
|
||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <cstdint>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
@@ -38,6 +38,7 @@
|
|||||||
|
|
||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
#include <tuple>
|
#include <tuple>
|
||||||
|
#include <cstdint>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
@@ -28,6 +28,10 @@
|
|||||||
#include <mp-units/bits/reference_concepts.h>
|
#include <mp-units/bits/reference_concepts.h>
|
||||||
#include <mp-units/bits/representation_concepts.h>
|
#include <mp-units/bits/representation_concepts.h>
|
||||||
|
|
||||||
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
|
#include <cstdint>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace mp_units {
|
namespace mp_units {
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
@@ -41,6 +41,7 @@
|
|||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
#include <gsl/gsl-lite.hpp>
|
#include <gsl/gsl-lite.hpp>
|
||||||
#include <array>
|
#include <array>
|
||||||
|
#include <cstdint>
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <string_view>
|
#include <string_view>
|
||||||
|
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
#ifndef MP_UNITS_IN_MODULE_INTERFACE
|
||||||
#include <mp-units/unit.h>
|
#include <mp-units/unit.h>
|
||||||
|
#include <cstdint>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MP_UNITS_EXPORT
|
MP_UNITS_EXPORT
|
||||||
|
@@ -23,6 +23,7 @@
|
|||||||
#include <catch2/catch_test_macros.hpp>
|
#include <catch2/catch_test_macros.hpp>
|
||||||
#include <catch2/matchers/catch_matchers_exception.hpp>
|
#include <catch2/matchers/catch_matchers_exception.hpp>
|
||||||
#include <mp-units/compat_macros.h>
|
#include <mp-units/compat_macros.h>
|
||||||
|
#include <cstdint>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include <mp-units/systems/isq/isq.h>
|
#include <mp-units/systems/isq/isq.h>
|
||||||
#include <mp-units/systems/si/si.h>
|
#include <mp-units/systems/si/si.h>
|
||||||
#include <mp-units/systems/usc/usc.h>
|
#include <mp-units/systems/usc/usc.h>
|
||||||
|
#include <cstdint>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
@@ -25,6 +25,7 @@
|
|||||||
#include <mp-units/systems/isq/mechanics.h>
|
#include <mp-units/systems/isq/mechanics.h>
|
||||||
#include <mp-units/systems/isq/space_and_time.h>
|
#include <mp-units/systems/isq/space_and_time.h>
|
||||||
#include <mp-units/systems/si/si.h>
|
#include <mp-units/systems/si/si.h>
|
||||||
|
#include <cstdint>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user