base_dimension is provided as a const& to the exp type

This commit is contained in:
Mateusz Pusz committed 2019-09-06 10:16:19 +02:00
1 parent 33b6fa9f3f
commit 3bcd80681e
20 files changed
+99 -100

No files matched your search

@@ -0,0 +1,37 @@
// The MIT License (MIT)
//
// Copyright (c) 2018 Mateusz Pusz
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
#pragma once
#include <units/dimension.h>
namespace std::experimental::units {
inline constexpr base_dimension base_dim_length{"length"};
inline constexpr base_dimension base_dim_mass{"mass"};
inline constexpr base_dimension base_dim_time{"time"};
inline constexpr base_dimension base_dim_current{"current"};
inline constexpr base_dimension base_dim_temperature{"temperature"};
inline constexpr base_dimension base_dim_substance{"substance"};
inline constexpr base_dimension base_dim_luminous_intensity{"luminous intensity"};
} // namespace std::experimental::units
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/electric_charge.h>
#include <units/dimensions/voltage.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/time.h>
#include <units/dimensions/current.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/force.h>
#include <units/dimensions/pressure.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/mass.h>
#include <units/dimensions/length.h>
#include <units/dimensions/time.h>
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/time.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/energy.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/force.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/quantity.h>
namespace std::experimental::units {
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <units/base_dimensions.h>
#include <units/dimensions/base_dimensions.h>
#include <units/dimensions/power.h>
#include <units/dimensions/current.h>
#include <units/dimensions/energy.h>