mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-29 18:07:16 +02:00
refactor: unit_text.h
header include moved to text-related targets
This commit is contained in:
@ -1,7 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/isq/si/prefixes.h>
|
||||
#include <units/quantity.h>
|
||||
|
||||
// get at the units text of the quantity, without its numeric value
|
||||
inline auto constexpr units_str(const units::Quantity auto& q)
|
||||
{
|
||||
|
@ -26,14 +26,16 @@
|
||||
#include <units/quantity.h>
|
||||
#include <string_view>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/unit_text.h>
|
||||
|
||||
UNITS_DIAGNOSTIC_PUSH
|
||||
UNITS_DIAGNOSTIC_IGNORE_UNREACHABLE
|
||||
UNITS_DIAGNOSTIC_IGNORE_SHADOW
|
||||
// IWYU pragma: begin_exports
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/locale.h>
|
||||
// IWYU pragma: end_exports
|
||||
UNITS_DIAGNOSTIC_POP
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
// Grammar
|
||||
//
|
||||
|
@ -27,6 +27,7 @@
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/external/fixed_string_io.h>
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <sstream>
|
||||
// IWYU pragma: end_exports
|
||||
|
||||
|
@ -27,7 +27,6 @@
|
||||
#include <units/generic/dimensionless.h>
|
||||
|
||||
// IWYU pragma: begin_exports
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/quantity_cast.h>
|
||||
#include <units/ratio.h>
|
||||
#include <compare>
|
||||
|
@ -20,6 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/concepts.h>
|
||||
#include <units/isq/si/cgs/cgs.h>
|
||||
#include <units/unit.h>
|
||||
|
@ -20,9 +20,10 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <units/isq/si/fps/fps.h>
|
||||
#include <units/bits/basic_concepts.h>
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/isq/si/acceleration.h>
|
||||
#include <units/isq/si/fps/fps.h>
|
||||
#include <units/isq/si/time.h>
|
||||
|
||||
namespace {
|
||||
|
@ -20,6 +20,7 @@
|
||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
// SOFTWARE.
|
||||
|
||||
#include <units/bits/unit_text.h>
|
||||
#include <units/generic/angle.h>
|
||||
#include <units/generic/dimensionless.h>
|
||||
#include <units/isq/si/si.h>
|
||||
|
Reference in New Issue
Block a user