Opened 16 years ago

Closed 15 years ago

#874 closed Feature Requests (wontfix)

Ability to partially specialize implementation_level

Reported by: sohail_@… Owned by: Robert Ramey
Milestone: Component: serialization
Version: None Severity: Optimization
Keywords: Cc: ramey@…

Description (last modified by Dave Abrahams)

Please add the ability to partially specialize implementation_level using enable_if. The use I would appreciate is:

template<typename T, typename Enable=void>
struct implementation_level;

template<typename T>
strut implementation_level<T,enable_if<my_condition<T> >::type >
{
   make_never_serialized_somehow;
};

If the above is not possible, please add an example to the documentation expressing how to achieve the above for a class of possibly unrelated types.

Thanks

Change History (5)

comment:1 by sohail_, 16 years ago

Logged In: YES 
user_id=1682817
Originator: YES

This is of course meant for the serialization library

comment:2 by Dave Abrahams, 15 years ago

Cc: ramey@… added
Component: Noneserialization
Description: modified (diff)
Reporter: changed from sohail_ to sohail_@…
Severity: Showstopper

Can't reassign this to Robert Ramey until he sets up his email as described in TicketWorkflow.

comment:3 by Eric Niebler, 15 years ago

Owner: changed from nobody to Robert Ramey
Status: assignednew

comment:4 by Robert Ramey, 15 years ago

Severity: ShowstopperOptimization
Status: newassigned

I would need a lot more information.

better explanation use case proposed fix to code impact on less/non conformant platforms.

comment:5 by Robert Ramey, 15 years ago

Resolution: Nonewontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.