Boost logo

Boost :

Subject: Re: [boost] [containers] flat_multimap compile errorin trunk
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-22 10:46:49


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
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk