Hi all,
The following code is compiling under windows (VS 2005):
vector<double>::iterator::distance_type n = std::distance(x,xmax);
Under unix, and using sunstudio12 and CC 5.9, I have the following error:
std::vector<double>::iterator is not a namespace or class name.
Why CC is not recognizing distance_type as a definition in iterator class? Is there an equivalent of the declaration above within CC 5.9?
Thanks,