title: Is it possible to set timeout for std::cin?
body: <p>Is it possible to set timeout for std::cin?
  For example, std::cin doesn't receive any data during 10 seconds - it throws an exception or returns an error.</p>
  
  <p><strong>Edited:</strong></p>
  
  <p>And what about timer from <code>Boost library</code>? As far as I know, it is portable library. Is it possible to ask timer of Boost library to throw exceptions after predefined period of time? I guess it can solve this problem.</p>