X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_enum.tpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_enum.tpp;h=0000000000000000000000000000000000000000;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hp=9778688377ef29568f6cef0ec6e002b291319f17;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_enum.tpp b/src/stlplus/persistence/persistent_enum.tpp deleted file mode 100644 index 9778688..0000000 --- a/src/stlplus/persistence/persistent_enum.tpp +++ /dev/null @@ -1,36 +0,0 @@ -//////////////////////////////////////////////////////////////////////////////// - -// Author: Andy Rushton -// Copyright: (c) Southampton University 1999-2004 -// (c) Andy Rushton 2004-2009 -// License: BSD License, see ../docs/license.html - -//////////////////////////////////////////////////////////////////////////////// - -#include "persistent_int.hpp" - -namespace stlplus -{ - - //////////////////////////////////////////////////////////////////////////////// - // enumeration types - - template - void dump_enum(dump_context& context, const T& data) - throw(persistent_dump_failed) - { - dump_unsigned(context,(unsigned)data); - } - - template - void restore_enum(restore_context& context, T& data) - throw(persistent_restore_failed) - { - unsigned value = 0; - restore_unsigned(context, value); - data = (T)value; - } - - //////////////////////////////////////////////////////////////////////////////// - -} // end namespace stlplus