struct Unique(T)

ChrisG christopher.gassib at gmail.com
Thu Nov 7 10:19:33 PST 2013


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?


More information about the Digitalmars-d-learn mailing list