summaryrefslogtreecommitdiff
path: root/project2/common/variableConvert.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 18:52:33 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2019-01-28 18:52:33 +0000
commitc6d151d2ff929f4b18c6c401d86d284788b4564f (patch)
treea5c1a467eb1c608407e2566ee9862a6939867453 /project2/common/variableConvert.cpp
parentC++17 JSON (diff)
downloadproject2-1.3.2.tar.bz2
project2-1.3.2.tar.xz
project2-1.3.2.zip
GCC-8.2 and libadhocutil-0.6 compat fixesproject2-1.3.2
Diffstat (limited to 'project2/common/variableConvert.cpp')
-rw-r--r--project2/common/variableConvert.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/project2/common/variableConvert.cpp b/project2/common/variableConvert.cpp
index 0681ed0..b3d3432 100644
--- a/project2/common/variableConvert.cpp
+++ b/project2/common/variableConvert.cpp
@@ -179,6 +179,10 @@ VariableType::operator const std::string &() const
{
return boost::apply_visitor(ConvertVisitorStdString(this), *this);
}
+VariableType::operator std::string_view() const
+{
+ return boost::apply_visitor(ConvertVisitorStdString(this), *this);
+}
VariableType::operator int() const
{
return boost::apply_visitor(ConvertVisitor<int>(this), *this);