boostorg / boostorg/units

Support for deserialization

Open
#41 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
39
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Hello,

Right now, only serialization is possible. Is there any reason deserialization is not implemented ?
I'm on a project where I want to extends the "safety" of units to the data in our database.
For example, I would like to be able to do that:
```
quantity l0 = 3.14 * si::meter;
stream << l0; // "3.14 m"

quantity a;
stream >> a; // throw an exception

quantity l1;
stream >> l1; // OK
```

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.