On Wed, Aug 26, 2009 at 4:13 PM, Avi Bahra <avibahra@googlemail.com> wrote:

Is there anything in boost/design pattern that can help with following:

    std::stringstream ss;
    ss << "SUBMIT: Task(" << absPath << ") ";
    log( Log::DBG, ss );

The code I am working on does this all over the place, what I would like is :

     log( Log::DBG,   "SUBMIT: Task(" << absPath << ") "  );
 


Well, you could have a look at Boost.Format. It gets you part way there, but
you'd still have a std::string rather than std::stringstream. Maybe your log function
has a std::string overload?

- Rob.