Jan Gaspar wrote: > I think, I changed mind. The flatten() method can be substituted by > something like this: > > void doSomething(const int* pInt, size_t numInts); // C API > circular_buffer<int> intBuffer(10); > ... > // fill the buffer somehow > vector<int> v(intBuffer.begin(), intBuffer.end()); // copy > if (!v.empty()) doSomething(&v[0], v.size()); // pass the data > to the API
Not if 'doSomething' is a mutating operation. -- Rainer Deyke - [EMAIL PROTECTED] - http://eldwood.com _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost