mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 20:54:28 +02:00
docs: examples in README do not use C++ modules anymore
This commit is contained in:
@@ -57,7 +57,7 @@ analysis and unit/quantity manipulation.
|
|||||||
Here is a small example of possible operations:
|
Here is a small example of possible operations:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
import mp_units;
|
#include <mp-units/systems/si.h>
|
||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
using namespace mp_units::si::unit_symbols;
|
using namespace mp_units::si::unit_symbols;
|
||||||
@@ -89,11 +89,15 @@ and dimensional analysis can be performed without sacrificing on runtime perform
|
|||||||
accuracy. Please see the below example for a quick preview of basic library features:
|
accuracy. Please see the below example for a quick preview of basic library features:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
|
#include <mp-units/format.h>
|
||||||
|
#include <mp-units/ostream.h>
|
||||||
|
#include <mp-units/systems/international.h>
|
||||||
|
#include <mp-units/systems/isq.h>
|
||||||
|
#include <mp-units/systems/si.h>
|
||||||
#include <format>
|
#include <format>
|
||||||
#include <iomanip>
|
#include <iomanip>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <print>
|
#include <print>
|
||||||
import mp_units;
|
|
||||||
|
|
||||||
using namespace mp_units;
|
using namespace mp_units;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user