I just added an example in latest development version (soon to be officially released):
http://curlpp.googlecode.com/files/curlpp-0.7.3-pre2.tar.gz So, you can look at example24, which should work with latest version or 0.7.2 On Fri, May 22, 2009 at 5:36 PM, Ben <[email protected]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---
