cin >> std::min -->No operator ">>" matches these operands

clusardi2k_at_aol.com
Date: 02/28/05


Date: 28 Feb 2005 10:25:01 -0800

For portability reasons, how can I compile the below code on SGI?

#include <ios>
#include <iostream.h>

int main ()
{
  int min;
  cout << "hour " << std::hex << c << endl;

  cout << "Enter min "";

  cin >> std::hex >> min;
}

CC file.cpp
No operator ">>" matches these operands.
the operand types are: istream_withassign >> <unknown type>.

cin >> std::min;
   ^

Thank you,
Christopher Lusardi



Relevant Pages