X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fstlplus%2Fpersistence%2Fpersistent_bool.cpp;fp=src%2Fstlplus%2Fpersistence%2Fpersistent_bool.cpp;h=0000000000000000000000000000000000000000;hb=5846afb00833cc72fe72422ca896d2387c712cb4;hp=dde1828120fc933e3f7e9604b02976ccefa4bc60;hpb=a97500609dc3c1b11f9786d32bc458eb00de4c36;p=chaz%2Fyoink diff --git a/src/stlplus/persistence/persistent_bool.cpp b/src/stlplus/persistence/persistent_bool.cpp deleted file mode 100644 index dde1828..0000000 --- a/src/stlplus/persistence/persistent_bool.cpp +++ /dev/null @@ -1,24 +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_bool.hpp" - -//////////////////////////////////////////////////////////////////////////////// - -// bool is dumped and restored as an unsigned char -void stlplus::dump_bool(stlplus::dump_context& context, const bool& data) throw(stlplus::persistent_dump_failed) -{ - context.put((unsigned char)data); -} - -void stlplus::restore_bool(restore_context& context, bool& data) throw(stlplus::persistent_restore_failed) -{ - data = context.get() != 0; -} - -////////////////////////////////////////////////////////////////////////////////