$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
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());