
16 Feb
2012
16 Feb
'12
5:51 p.m.
Nelson, Erik - 2 wrote:
What I'd like is a compile-time way of detecting that 'A' is not serializable, maybe Boost Type Traits-style, something like
is_serializable<A>::value or is_serializable
::value that can detect whether or not the object has serialization available. If it could work for testing pointer serialization as well (is_serializable::value or is_ptr_serializable<A>::value) that would be doubly super.
I'm sure this would be possible and probably not all that hard but would likely require a tweak in the serialization library. Add a trac item so the idea doesn't get forgotten. Robert Ramey