
17 Jul
2007
17 Jul
'07
2:01 p.m.
on Mon Jul 16 2007, Thorsten Ottosen
// Won't work: no way to get to raw storage return FiddleWithStuff(&output[0], count, ...); }
Well, it's ugly, but you can do something along
reinterpret_cast
( &*output.begin().base() )
You should almost never recommend reinterpret_cast, as its semantics are (mostly) implementation-defined. You probably mean to static_cast twice, passing through void* -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com