I hereby claim:
- I am nbougalis on github.
- I am nbougalis (https://keybase.io/nbougalis) on keybase.
- I have a public key ASABGbvTm-VP1imIWqp7P5uF-zjz6f00r5MZOKsb7fY-Ygo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // Example for comment in PR 3428: https://github.com/ripple/rippled/pull/3428 | |
| #include <iostream> | |
| #include <ratio> | |
| constexpr int oldN = 204; | |
| constexpr int oldD = 256; | |
| constexpr int newN = 80; | |
| constexpr int newD = 100; |
| // I wrote this little helper function while working on a disaster of a | |
| // codebase with little to no locking. One of my main goals was to make | |
| // it thread safe. | |
| // | |
| // I needed an easy to grab a lock, do some work (which could sometimes | |
| // throw an exception) and then release the lock, but I did not want to | |
| // have lock_guard objects littered in every part of the code. | |
| #include <utility> | |
| #include <type_traits> |