mostly backwards compatibility with old pack system, uses boost tribool

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1311 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2009-01-09 00:49:14 +00:00
parent bce5761781
commit 432cdcd583
8 changed files with 30 additions and 5 deletions
+6
View File
@@ -12,6 +12,7 @@
#include <util/error.hpp>
#include <util/version.hpp>
#include <util/io/package.hpp>
#include <boost/logic/tribool.hpp>
// ----------------------------------------------------------------------------- : Writer
@@ -104,6 +105,11 @@ template <> void Writer::handle(const double& value) {
template <> void Writer::handle(const bool& value) {
handle(value ? _("true") : _("false"));
}
template <> void Writer::handle(const tribool& value) {
if (!indeterminate(value)) {
handle(value ? _("true") : _("false"));
}
}
// ----------------------------------------------------------------------------- : Handling less basic util types