mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 18:37:15 +02:00
Predefined dimensions moved to a dedicated directory
This commit is contained in:
@ -65,6 +65,7 @@ NOTE: This library as of now compiles correctly only with gcc-9.1 and newer.
|
|||||||
- Added a few more derived dimensions
|
- Added a few more derived dimensions
|
||||||
- `meter` renamed to `metre`
|
- `meter` renamed to `metre`
|
||||||
- Missing `operator*` added
|
- Missing `operator*` added
|
||||||
|
- Predefined dimensions moved to a dedicated directory
|
||||||
|
|
||||||
- 0.2.0 July 18, 2019
|
- 0.2.0 July 18, 2019
|
||||||
- Added C++20 features supported by gcc-9.1 (std::remove_cvref_t, down with typename, std::type_identity)
|
- Added C++20 features supported by gcc-9.1 (std::remove_cvref_t, down with typename, std::type_identity)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include <units/velocity.h>
|
#include <units/dimensions/velocity.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/velocity.h>
|
#include <units/dimensions/velocity.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/length.h>
|
#include <units/dimensions/length.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,8 +23,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/electric_charge.h>
|
#include <units/dimensions/electric_charge.h>
|
||||||
#include <units/voltage.h>
|
#include <units/dimensions/voltage.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,8 +23,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/time.h>
|
#include <units/dimensions/time.h>
|
||||||
#include <units/current.h>
|
#include <units/dimensions/current.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,8 +23,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/force.h>
|
#include <units/dimensions/force.h>
|
||||||
#include <units/pressure.h>
|
#include <units/dimensions/pressure.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,9 +23,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/mass.h>
|
#include <units/dimensions/mass.h>
|
||||||
#include <units/length.h>
|
#include <units/dimensions/length.h>
|
||||||
#include <units/time.h>
|
#include <units/dimensions/time.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/time.h>
|
#include <units/dimensions/time.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/energy.h>
|
#include <units/dimensions/energy.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,7 +23,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/force.h>
|
#include <units/dimensions/force.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -22,8 +22,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/length.h>
|
#include <units/dimensions/length.h>
|
||||||
#include <units/time.h>
|
#include <units/dimensions/time.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -23,10 +23,10 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/base_dimensions.h>
|
#include <units/base_dimensions.h>
|
||||||
#include <units/power.h>
|
#include <units/dimensions/power.h>
|
||||||
#include <units/current.h>
|
#include <units/dimensions/current.h>
|
||||||
#include <units/energy.h>
|
#include <units/dimensions/energy.h>
|
||||||
#include <units/electric_charge.h>
|
#include <units/dimensions/electric_charge.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <units/length.h>
|
#include <units/dimensions/length.h>
|
||||||
|
|
||||||
namespace std::experimental::units {
|
namespace std::experimental::units {
|
||||||
|
|
@ -20,8 +20,8 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include "units/velocity.h"
|
#include "units/dimensions/velocity.h"
|
||||||
#include "units/frequency.h"
|
#include "units/dimensions/frequency.h"
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
|
|
||||||
|
@ -20,27 +20,27 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include <units/time.h>
|
#include <units/dimensions/time.h>
|
||||||
#include <units/length.h>
|
#include <units/dimensions/length.h>
|
||||||
#include <units/mass.h>
|
#include <units/dimensions/mass.h>
|
||||||
#include <units/current.h>
|
#include <units/dimensions/current.h>
|
||||||
#include <units/temperature.h>
|
#include <units/dimensions/temperature.h>
|
||||||
#include <units/substance.h>
|
#include <units/dimensions/substance.h>
|
||||||
#include <units/luminous_intensity.h>
|
#include <units/dimensions/luminous_intensity.h>
|
||||||
|
|
||||||
#include <units/frequency.h>
|
#include <units/dimensions/frequency.h>
|
||||||
#include <units/force.h>
|
#include <units/dimensions/force.h>
|
||||||
#include <units/pressure.h>
|
#include <units/dimensions/pressure.h>
|
||||||
#include <units/energy.h>
|
#include <units/dimensions/energy.h>
|
||||||
#include <units/power.h>
|
#include <units/dimensions/power.h>
|
||||||
#include <units/electric_charge.h>
|
#include <units/dimensions/electric_charge.h>
|
||||||
#include <units/voltage.h>
|
#include <units/dimensions/voltage.h>
|
||||||
#include <units/capacitance.h>
|
#include <units/dimensions/capacitance.h>
|
||||||
|
|
||||||
#include <units/velocity.h>
|
#include <units/dimensions/velocity.h>
|
||||||
#include <units/acceleration.h>
|
#include <units/dimensions/acceleration.h>
|
||||||
#include <units/area.h>
|
#include <units/dimensions/area.h>
|
||||||
#include <units/volume.h>
|
#include <units/dimensions/volume.h>
|
||||||
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
// SOFTWARE.
|
// SOFTWARE.
|
||||||
|
|
||||||
#include <units/velocity.h>
|
#include <units/dimensions/velocity.h>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
namespace stde = std::experimental;
|
namespace stde = std::experimental;
|
||||||
|
Reference in New Issue
Block a user