-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor linecache traits to avoid unnecessary boilerplate code when …
…using non-standard data types - linecache requires specializations for sizeof_container_element<>() and elementsof_container<>() for each container type in use - previously this was done by writing out template specializations longhand, but this does not seem to be required. For any container implementing the STL container interface, a size() method will be available and we can provide a template to use it. Also, most containers will provide a value_type type, so we can provide a template to extract sizeof() from this
- Loading branch information
Showing
2 changed files
with
13 additions
and
45 deletions.
There are no files selected for viewing
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