Den 19-06-2011 14:52, Jacob Carlborg skrev:
On 2011-06-19 11:44, jdrewsen wrote:
Den 19-06-2011 11:12, Johannes Pfau skrev:
Jimmy Cao wrote:
Also, why the bool dummy argument in the Curl struct constructor?


I guess that's because structs can't have default constructors. Is
there a better solution to this problem?

That is why yes. I could just make a static "create()" function instead,
but I went for this model. I would very much like to know a better
solution.

A static opCall function allow this syntax:

auto s = Struct();


Thanks

Reply via email to