Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Void

Newing arrays with auto_ptrs??

This topic is 6672 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

For legacy reasons, I need to allocate an array pointer of a own defined type and access the buffer.. Is it possible to encapsulate it within a auto_ptr or something similar so it gets stack based rather than heapbased? Something like
        
   MyType   *var;   // self defined type


   var = new MyType[10];  // need to allocate buffer


   // have to access the var buffer like var[1]

        
Please?.. Edited by - Void on 7/14/00 3:44:08 AM

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!