
22 Apr
2010
22 Apr
'10
2:46 p.m.
AMDG Thorsten Ottosen wrote:
The following code is making the compiler (vc9) choke:
What's the error message. Do you have a minimal test case?
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.
What is BitSet? std::bitset<42>? In Christ, Steven Watanabe