Skip to content

Instantly share code, notes, and snippets.

@jasonroelofs
Created December 16, 2009 18:27
Show Gist options
  • Save jasonroelofs/258045 to your computer and use it in GitHub Desktop.
Save jasonroelofs/258045 to your computer and use it in GitHub Desktop.
/**
* Rice's memory management works on these Allocation_Strategy-s. Define
* for a specific class to control if Rice takes care of allocation, deallocation, neither or both (default is both)
*/
namespace Rice {
template<>
struct Default_Allocation_Strategy< BowlineWindow > {
static BowlineWindow * allocate() { return new BowlineWindow(); }
static void free(BowlineWindow * obj) { }
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment