--- /dev/null
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+// Author: Andy Rushton\r
+// Copyright: (c) Southampton University 1999-2004\r
+// (c) Andy Rushton 2004-2009\r
+// License: BSD License, see ../docs/license.html\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "persistent_bool.hpp"\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+// bool is dumped and restored as an unsigned char\r
+void stlplus::dump_bool(stlplus::dump_context& context, const bool& data) throw(stlplus::persistent_dump_failed)\r
+{\r
+ context.put((unsigned char)data);\r
+}\r
+\r
+void stlplus::restore_bool(restore_context& context, bool& data) throw(stlplus::persistent_restore_failed)\r
+{\r
+ data = context.get() != 0;\r
+}\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r