xo-unit ++ docs ++ quantity arithmetic + example
This commit is contained in:
parent
412a0ba163
commit
b0ce5eaee9
34 changed files with 713 additions and 173 deletions
18
example/ex_qty/ex_qty.cpp
Normal file
18
example/ex_qty/ex_qty.cpp
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
/* @file ex_qty.cpp */
|
||||
|
||||
#include "xo/unit/quantity.hpp"
|
||||
#include "xo/unit/quantity_iostream.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
int
|
||||
main() {
|
||||
using namespace xo::qty;
|
||||
namespace u = xo::qty::u;
|
||||
|
||||
static_assert(u::meter.n_bpu() == 1);
|
||||
|
||||
//constexpr auto q = qty::meters(2) + u::meter;
|
||||
}
|
||||
|
||||
/* end ex_qty.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue