-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now able to use the default std::allocator instead of the custom Allo…
…cator.
- Loading branch information
Alan Wright
committed
May 7, 2012
1 parent
c6e5192
commit f173112
Showing
15 changed files
with
289 additions
and
279 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
f173112
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't it be LPP_USE_SYSTEM_ALLOCATOR instead of LPP_USE_ALLOCATOR, that is the other way around?
The way LPP_USE_ALLOCATOR got introduce it breaks source compatibility without any chance to protect against by something like "#ifdef LPP_USE_ALLOCATOR" as there was no LPP_USE_ALLOCATOR before this commit. On the other hand if the new feature of using std::allocator would be protected by "#ifdef LPP_USE_SYSTEM_ALLOCATOR" (instead of "#ifndef LPP_USE_ALLOCATOR"), existing code could adjust to this change by checking for LPP_USE_SYSTEM_ALLOCATOR to.
Also it seems there is no cmake option for this feature.