Created
December 16, 2009 18:27
-
-
Save jasonroelofs/258045 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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