how to read 'enter key being pressed'

I want my
 
std::getline(std::cin,line,'.')  

to work in such a way that instead of a dot a simple enter key being pressed ends the user input and reads the input.
... simple enter key being pressed ends the user input

use the non-delim version of std::getline() which is the second one here:
http://en.cppreference.com/w/cpp/string/basic_string/getline
Topic archived. No new replies allowed.