Boost logo

Boost :

Subject: Re: [boost] [function] minor doc issues
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-20 10:43:51


AMDG

Thorsten Ottosen wrote:
> I can't compile
>
> std::vector<double> v = static_cast<std::vector<double>>(42);
>
> what am I overlooking?

I don't know. The following compiles for me
with msvc 9.0 and gcc 4.3.0

#include <vector>

int main() {
    std::vector<double> v = static_cast<std::vector<double> >(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