What ever happened to Boost.AutoBuffer?

I recall some "detail" code in Boost that does exactly what I want: allocate a probably-good-enough size on the stack but switch to heap if needed. But I can't remember where I saw it. Looking around, I came across mentions of Boost.AutoBuffer by Thorsten Ottosen, but all links are dead.

On 03-05-2013 01:52, John M. Dlugosz wrote:
I recall some "detail" code in Boost that does exactly what I want: allocate a probably-good-enough size on the stack but switch to heap if needed. But I can't remember where I saw it.
Looking around, I came across mentions of Boost.AutoBuffer by Thorsten Ottosen, but all links are dead.
I have been a bit busy, but I plan to get it going soon. It seems that there is an unofficial version in boost/signals2/auto_buffer.hpp regards -Thorsten

On 05/02/2013 07:52 PM, John M. Dlugosz wrote:
I recall some "detail" code in Boost that does exactly what I want: allocate a probably-good-enough size on the stack but switch to heap if needed. But I can't remember where I saw it.
Looking around, I came across mentions of Boost.AutoBuffer by Thorsten Ottosen, but all links are dead.
I think the loki smallstringOpt class will do what you want to do. It initially allocates storage on the stack but if the string grows beyond the initial allocation it switches to heap storage. Dave Riedel
participants (3)
-
David P. Riedel
-
John M. Dlugosz
-
Thorsten Ottosen