Hi,
having problems with error from the following code snippet
#include <string>
#include <iostream>
using namespace std;
int main(int,char*argv[])
{
basic_string<wchar_t> ws_t;
basic_istream<wchar_t>* is;
is=&wcin;
if(std::getline(*is,ws_t,L'\n'))
{
wcout << "INPUT : " << ws_t;
}
return 0;
}
just a little test from the actual code but it returns the error
No instance of overloaded function "std::getline" matches
arg types are (std::basic_istream<wchar_t, std::char_traits<wchar_t>>,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>,wchar_t).
anyone have any idea?
sure I have something simple going wrong here but I can't see it right now
Cheers
having problems with error from the following code snippet
#include <string>
#include <iostream>
using namespace std;
int main(int,char*argv[])
{
basic_string<wchar_t> ws_t;
basic_istream<wchar_t>* is;
is=&wcin;
if(std::getline(*is,ws_t,L'\n'))
{
wcout << "INPUT : " << ws_t;
}
return 0;
}
just a little test from the actual code but it returns the error
No instance of overloaded function "std::getline" matches
arg types are (std::basic_istream<wchar_t, std::char_traits<wchar_t>>,std::basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t>>,wchar_t).
anyone have any idea?
sure I have something simple going wrong here but I can't see it right now
Cheers