Skip to content
Snippets Groups Projects
  • Tom Tromey's avatar
    0d5a0b9a
    libcc1: add deleter objects · 0d5a0b9a
    Tom Tromey authored
    This adds deleter objects for various kinds of protocol pointers to
    libcc1.  Existing specializations of argument_wrapper are then
    replaced with a single specialization that handles all pointer types
    via the appropriate deleter.  The result here is a bit nicer because
    the argument_wrapper boilerplate code is completely shared, leaving
    just the memory-management detail to the particular specializations.
    
    libcc1
    
    	* rpc.hh (struct deleter): New template class and
    	specializations.
    	(argument_wrapper): Remove specializations.  Add specialization
    	for any pointer type.
    
    
    0d5a0b9a
    History
    libcc1: add deleter objects
    Tom Tromey authored
    This adds deleter objects for various kinds of protocol pointers to
    libcc1.  Existing specializations of argument_wrapper are then
    replaced with a single specialization that handles all pointer types
    via the appropriate deleter.  The result here is a bit nicer because
    the argument_wrapper boilerplate code is completely shared, leaving
    just the memory-management detail to the particular specializations.
    
    libcc1
    
    	* rpc.hh (struct deleter): New template class and
    	specializations.
    	(argument_wrapper): Remove specializations.  Add specialization
    	for any pointer type.