Add 'xo-unit/' from commit 'b531e382c2'
git-subtree-dir: xo-unit git-subtree-mainline:e9ee6992cagit-subtree-split:b531e382c2
This commit is contained in:
commit
d1fa15f248
105 changed files with 11790 additions and 0 deletions
18
xo-unit/example/ex_qty/ex_qty.cpp
Normal file
18
xo-unit/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