igor-c/regal — pull request #1 by nigels-com (2012-10-22 17:42:37+00:00)
Title: Regal::shared_ptr for Mac, Linux, Windows - shared context

Hi Igor,

I did some further work with Regal::shared_ptr with a view towards merging the shared context support from your branch on github. I established a shared_context branch for collaboration purposes.

My idea for shared_ptr is that Regal ought to have a fallback implementation of that works for single-threaded mode. The reference counting is not yet implemented. I also changed the macro to REGAL_NO_TR1 which allows for disabling or enabling the TR1 std::tr1::shared_ptr at compile time.

Next I'll think about the RegalCreateContext API - on the face of it I think it's a bit clumsy, but I appreciate the legitimate need to do this at RegalContext creation time.

- Nigel