Boost logo

Boost Users :

Subject: Re: [Boost-users] lexical problem
From: Igor R (boost.lists_at_[hidden])
Date: 2009-09-15 12:14:07


> does not work either =(,

what exactly doesn't work? what error do you have? can you post an
exact reproducing excerpt?

> i dont understand why can i not do this :
> std::string datos(buf.data(),2);
> printf("%s \n",datos);

because printf is a C function that knows nothing about std::string.
it should be:

printf("%s \n", datos.c_str());


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net