
22 Apr
2010
22 Apr
'10
12:22 p.m.
Hi Ion, The following code is making the compiler (vc9) choke: template<class D, class S> static D force_copy(S s) { value_type *vp = reinterpret_cast<value_type *>(&*s); return D(vp); } I don't get the code either? What is it good for, and why is a static_cast not good enough? If it helps, I'm using flat_multimap<BitSet,BitSet>, and not a build-in type. -Thorsten