pietro....@gmail.com wrote in
news:a45ccd07-3838-4fda...@googlegroups.com:
>
> void f (std::vector<double> v);
>
> It is currently possible to do this:
>
> auto a {1, 2, 3}:
> g (a);
>
> but not to do this:
>
> g ({1, 2, 3});
FWIW, gcc 4.8 (with -std=c++0x) compiles and runs this fine:
#include <vector>
void g(std::vector<double> v) {}
int main(int argc, char *argv[]) {
g({1.5, 2.0, 3.0});
}