1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
8 ////////////////////////////////////////////////////////////////////////////////
10 #include "persistent_int.hpp"
15 ////////////////////////////////////////////////////////////////////////////////
19 void dump_enum(dump_context& context, const T& data)
20 throw(persistent_dump_failed)
22 dump_unsigned(context,(unsigned)data);
26 void restore_enum(restore_context& context, T& data)
27 throw(persistent_restore_failed)
30 restore_unsigned(context, value);
34 ////////////////////////////////////////////////////////////////////////////////
36 } // end namespace stlplus