On 2011-06-19 02:12, Johannes Pfau wrote: > 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?
The usual solution is to have a static opCall function with no parameters. Then you can do auto s = S(); though S s; of course is still S.init; - Jonathan M Davis
