[reSIProcate] Does this is Data class bug ?
Karlsson
boost.regex at gmail.com
Fri Nov 28 05:43:09 CST 2008
I want this program outpurt "www.test.com:8080"
But it's output www.test.com: <http://www.test.com/>
#include <Windows.h>
#include <Rutil/Data.hxx>
using namespace std;
using namespace resip;
#pragma comment(lib, "ws2_32.lib")
#pragma comment(lib, "../lib/Rutil.lib")
int main()
{
string server = "www.test.com";
int port = 8080;
Data host = server.c_str();
host += ":";
host += port;
string temp = host.c_str();
cout << temp << endl;
return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20081128/783b76e8/attachment.htm>
More information about the resiprocate-devel
mailing list