Illegal token on right side of ::

Posted by Adam Haile on Stack Overflow See other posts from Stack Overflow or by Adam Haile
Published on 2010-04-01T15:06:15Z Indexed on 2010/04/01 15:13 UTC
Read the original article Hit count: 258

Filed under:
|
|

I have the following template declaration:

template <typename T>
   void IterTable(int&                       rIdx,
                  std::vector<double>&       rVarVector,
                  const std::vector<T>&      aTable,
                  const T                    aValue,
                  T              aLowerBound = -(std::numeric_limits<T>::max()), //illegal token on right side of '::' shows here
                  bool                       aLeftOpen = true) const;

Which throws the illegal token error as noted, on the line with "-(std::numeric_limits::max())". I got this code from some old linux source that I'm trying to compile on Windows. Any idea what the issue is?

© Stack Overflow or respective owner

Related posts about c++

Related posts about win32