[Boost-users] Iterate intrusive list without container?

2021-10-21 Thread John W via Boost-users
With a traditional "hand-rolled" doubly-linked list, if you have a reference to a Node, you can traverse from that node to the end of the list easily. Just check for "pNext == NULL" to know when you're at the end. You don't need any reference to the owning "list container" object. However, I can't

[Boost-users] Using Boost.Random with fixed-point numbers

2020-10-01 Thread John W via Boost-users
I have a fixed-point number class (based on libfixmath) which in code largely behaves like a float due to various operator overloading. Now, I am trying to generate random numbers with them. Uniform random is easy enough — just reinterpret some random bits as my fixedpoint type. However, I'd like