KpyM Telnet/SSH Server - Forum
Compile Error |
Serge Fonville |
Compile Error |
Dec 17 2012 20:26 |
|
Hi,
I was looking into Kpym 1.19c and tried to compile it.
But I got a compile error after importing the project in Visual Studio 2012
Error 1 error C2668: 'std::basic_string<_Elem,_Traits,_Alloc>::basic_string' : ambiguous call to overloaded function KScreenExport.hxx 152 1 session
What should I edit to select the right overload?
Thanks in advance
|
G Feng |
code |
Mar 13 2013 14:00 |
|
std::wstring blank = L" \t\r\n";
blank += std::wstring( 0, 1 );
What is blank for?
|
Gottfried |
|
Mar 18 2018 17:28 |
|
I checked this with Visual Studio 2008
This uses the constructor:
basic_string (size_type n, charT c, const allocator_type& alloc = allocator_type());
So it adds 0 times the character 1 ('0x01')
So this line can be deactivated or removed, or changed to:
blank += std::wstring( 0, L'0x01' );
|
© 2007 - 2008 Kroum Grigorov