Not simply, no. The best way would be to write a getline() variant that uses the original getline() to delimit properly. Basic algorithm:
Get a string using std::getline(), delimiting on the LAST character in your delimiter string, and append that to the result string.
If the end of the result string is the same as the delimiter string (sans the last character), then remove those characters from the result string and return it.
Otherwise, append the last character of the delimiter string to the result string and go to step 1.