struct Unique(T)

Namespace rswhite4 at googlemail.com
Thu Nov 7 11:35:27 PST 2013


On Thursday, 7 November 2013 at 18:19:35 UTC, ChrisG wrote:
> On Thursday, 7 November 2013 at 09:51:38 UTC, Namespace wrote:
>>
>> Dgame use the SDL also and needed therefore (as you do) shared 
>> and unique pointers (mostly shared). So I wrote my own 
>> versions and like to share them with you, maybe it helps you.
>>
>> Surface with shared SDL_Surface: 
>> https://github.com/Dgame/Dgame/blob/master/Graphics/Surface.d#L67
>> Creation of the shared_ptr: 
>> https://github.com/Dgame/Dgame/blob/master/Graphics/Surface.d#L100
>> And the shared_ptr struct: 
>> https://github.com/Dgame/Dgame/blob/master/Internal/Shared.d
>
> Thanks. I've been looking through your website and github. Very 
> cool stuff. What license is your code released under?

Under zlib/png. I should add this on my site and in my code. 
Thanks for remembering. :)


More information about the Digitalmars-d-learn mailing list