Opened 16 years ago

Last modified 15 years ago

#874 closed Feature Requests (wontfix)

Ability to partially specialize implementation_level — at Version 2

Reported by: sohail_@… Owned by: nobody
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 (2)

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.

Note: See TracTickets for help on using tickets.