diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-21 21:22:31 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-01-21 21:22:31 +0000 |
commit | 136e54402500d6065ddcfcb2941b0849f523a279 (patch) | |
tree | e80fd6b425ad65b21695f337a3c8e31730b7257b | |
parent | Use libdbpp's table patch (diff) | |
download | project2-136e54402500d6065ddcfcb2941b0849f523a279.tar.bz2 project2-136e54402500d6065ddcfcb2941b0849f523a279.tar.xz project2-136e54402500d6065ddcfcb2941b0849f523a279.zip |
Add workaround for has_result_type not correctly handling references
-rw-r--r-- | project2/common/variableConvert.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/project2/common/variableConvert.cpp b/project2/common/variableConvert.cpp index 2c6e49a..fb90c95 100644 --- a/project2/common/variableConvert.cpp +++ b/project2/common/variableConvert.cpp @@ -1,4 +1,5 @@ #include <pch.hpp> +#define BOOST_NO_CXX14_DECLTYPE_AUTO #include "variables.h" #include "exceptions.h" #include <boost/lexical_cast.hpp> @@ -193,6 +194,7 @@ class ConvertVisitorBool : public boost::static_visitor<bool> { } const VariableType * var; }; + VariableType::operator const Glib::ustring &() const { return boost::apply_visitor(ConvertVisitorGlibUstring(this), *this); @@ -237,3 +239,4 @@ VariableType::operator bool() const { return boost::apply_visitor(ConvertVisitorBool(this), *this); } + |