![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
[cURLpp] [Fwd: Re: curlpp as a library]
From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Sat, 22 Nov 2008 12:46:05 +0100
Jean
The reason curlpp might work now as a library is because it doesn't use templates with user defined types at all. And even in case of setOpt all arguments are either of type OptionBase or OptionBase or OptionList. Below are 3 exports from curlpp dll lib which are responsible for this
void cURLpp::Easy::setOpt(class cURLpp::OptionBase const &)
If we are going to add the new setOpt() and set() functions taking as an argument the real type of option's type then we'll have to explicit instantiate both of these functions with all possible options' types.
template
I'm not sure if even in the current source there aren't places where we should have made explicit instantiations that would generate all needed by users code in the library object file instead of generating it in user's application object file.
Regards
_______________________________________________
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info