18 Jun
2016
18 Jun
'16
12:14 p.m.
On 06/15/2016 07:46 PM, Thomas Heller wrote:
Wouldn't it be possible to have a generic implementation for serialization that's SFINAEed properly?
That can be done with Boost.Serialization today if you bounce the boost::serialization::serialize() function to a trampoline function object and do your SFINAE on the function object. I have described the general technique here: http://breese.github.io/2015/12/20/partiality-for-functions.html I am using this technique together with Boost.Serialization here: https://github.com/breese/trial.protocol/blob/develop/include/trial/protocol... with a SFINAE (well, partial specialization) example here: https://github.com/breese/trial.protocol/blob/develop/include/trial/protocol...