tr1 or boost smart pointers

If you have any questions on programming, this is the place to ask them, whether you're a newbie or an experienced programmer. Discussion on programming in general is also welcome. We will help you with programming homework, but we will not do your work for you! Any porting requests must be made in Developmental Ideas.
Post Reply
EnigmaticCoder
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 36
Joined: Tue Nov 03, 2009 6:02 pm
Has liked: 0
Been liked: 0

tr1 or boost smart pointers

Post by EnigmaticCoder » Fri Nov 25, 2011 5:06 pm

Have tr1 or boost smart pointers been ported to KOS? If not, has anyone implemented their own shared and weak ptrs that work with KOS? Can I use them? Do they have enable_shared_from_this functionality?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5441
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 3 times
Been liked: 23 times
Contact:

Re: tr1 or boost smart pointers

Post by BlueCrab » Fri Nov 25, 2011 6:37 pm

Boost should (for the most part) be able to be compiled with KOS. Nobody's bothered to do so though, as far as I know.
EnigmaticCoder
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 36
Joined: Tue Nov 03, 2009 6:02 pm
Has liked: 0
Been liked: 0

Re: tr1 or boost smart pointers

Post by EnigmaticCoder » Fri Nov 25, 2011 8:02 pm

Thanks

I'm not ready to compile boost with KOS right now, but I'll post back or go to the irc channel when I am. For future reference, is it a simple matter of using the g++ cross compiler to compile the library?
User avatar
BlueCrab
The Crabby Overlord
The Crabby Overlord
Posts: 5441
Joined: Mon May 27, 2002 11:31 am
Location: Sailing the Skies of Arcadia
Has liked: 3 times
Been liked: 23 times
Contact:

Re: tr1 or boost smart pointers

Post by BlueCrab » Fri Nov 25, 2011 8:06 pm

EnigmaticCoder wrote:Thanks

I'm not ready to compile boost with KOS right now, but I'll post back or go to the irc channel when I am. For future reference, is it a simple matter of using the g++ cross compiler to compile the library?
It shouldn't be too terribly much more difficult than that to get a lot of it to work.
EnigmaticCoder
DCEmu Crazy Poster
DCEmu Crazy Poster
Posts: 36
Joined: Tue Nov 03, 2009 6:02 pm
Has liked: 0
Been liked: 0

Re: tr1 or boost smart pointers

Post by EnigmaticCoder » Sat Nov 26, 2011 7:20 pm

Thanks again, I will probably have no problem with this.
Post Reply