Is there an easy way to write debug information to a stream (like
cURLpp::Options::WriteStream does for the response data)?  I'm trying
to use DebugFunction with DebugFunctionFunctor exactly like in example
09 but I'm getting an error when compiling.  I'm using curlpp 0.7.2
and getting this:

error: ‘((utilspp::FunctorHandler<utilspp::Functor<int,
utilspp::tl::TypeList<curl_infotype, utilspp::tl::TypeList<char*,
utilspp::tl::TypeList<size_t, utilspp::NullType> > > >,
cURLpp::Types::DebugFunctionFunctor*>*)this)-
>utilspp::FunctorHandler<utilspp::Functor<int,
utilspp::tl::TypeList<curl_infotype, utilspp::tl::TypeList<char*,
utilspp::tl::TypeList<size_t, utilspp::NullType> > > >,
cURLpp::Types::DebugFunctionFunctor*>::mFun’ cannot be used as a
function

and in my code:

class curlPPDebug
{

public:

        int writeDebug(curl_infotype, char *, size_t)
        {
                std::cout << "Testing debug" << std::endl;
                return 0;
        }

};

...

curlPPDebug myDebug;
request.setOpt(new cURLpp::Options::DebugFunction(new
cURLpp::Types::DebugFunctionFunctor
(&myDebug,&curlPPDebug::writeDebug)));
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"curlpp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/curlpp?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to