Doug Mika <
doug...@gmail.com> wrote in news:6f7085a7-cf81-4ec3-a2b6-
895f58...@googlegroups.com:
value_type is already a type, so applying decltype on it does not make
sense. I guess this is what you are after:
#include <vector>
int main(){
std::vector<double> vd;
decltype(vd)::value_type otherDouble = 2.2;
}
hth
Paavo