std::accumulate(v.begin(), v.end(), static_cast<double>(0));
std::accumulate(v.begin(), v.end(), double());

型名を明示したかったらこうすればいいだけのことだろ
ばかばかしい