fix: dependencies on cstdint header fixed

This commit is contained in:
Mateusz Pusz
2024-04-23 08:59:14 +02:00
parent 8580c59875
commit 15389107d4
14 changed files with 21 additions and 9 deletions

View File

@ -27,6 +27,10 @@
#include <mp-units/bits/external/type_traits.h>
#include <mp-units/bits/ratio.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <cstdint>
#endif
namespace mp_units {
/**

View File

@ -22,10 +22,6 @@
#pragma once
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <cstdint>
#endif
namespace mp_units::detail {
template<auto N>

View File

@ -31,7 +31,6 @@
#include <gsl/gsl-lite.hpp>
#include <compare>
#include <cstddef>
#include <cstdint>
#endif
#if __cpp_lib_text_encoding

View File

@ -27,6 +27,10 @@
#include <mp-units/bits/ratio.h>
#include <mp-units/bits/symbol_text.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <cstdint>
#endif
namespace mp_units {
namespace detail {

View File

@ -33,6 +33,7 @@
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <gsl/gsl-lite.hpp>
#include <array>
#include <cstdint>
#include <iterator>
#include <string>
#include <string_view>

View File

@ -29,10 +29,6 @@
#include <mp-units/quantity.h>
#include <mp-units/unit.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <cstdint>
#endif
namespace mp_units::detail {
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 `:`");
do {
auto c = *begin++;
// TODO check if not repeated
switch (c) {
case 'N':
begin = parse_default_spec(begin, end, rep_formatter_, rep_format_str_);

View File

@ -29,6 +29,7 @@
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <sstream>
#include <cstdint>
#endif
namespace mp_units {

View File

@ -38,6 +38,7 @@
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <tuple>
#include <cstdint>
#endif
namespace mp_units {

View File

@ -28,6 +28,10 @@
#include <mp-units/bits/reference_concepts.h>
#include <mp-units/bits/representation_concepts.h>
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <cstdint>
#endif
namespace mp_units {
namespace detail {

View File

@ -41,6 +41,7 @@
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <gsl/gsl-lite.hpp>
#include <array>
#include <cstdint>
#include <iterator>
#include <string>
#include <string_view>

View File

@ -27,6 +27,7 @@
#ifndef MP_UNITS_IN_MODULE_INTERFACE
#include <mp-units/unit.h>
#include <cstdint>
#endif
MP_UNITS_EXPORT

View File

@ -23,6 +23,7 @@
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_exception.hpp>
#include <mp-units/compat_macros.h>
#include <cstdint>
#include <iomanip>
#include <limits>
#include <locale>

View File

@ -25,6 +25,7 @@
#include <mp-units/systems/isq/isq.h>
#include <mp-units/systems/si/si.h>
#include <mp-units/systems/usc/usc.h>
#include <cstdint>
#include <limits>
#include <type_traits>
#include <utility>

View File

@ -25,6 +25,7 @@
#include <mp-units/systems/isq/mechanics.h>
#include <mp-units/systems/isq/space_and_time.h>
#include <mp-units/systems/si/si.h>
#include <cstdint>
#include <limits>
#include <utility>