diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-01-28 18:52:33 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2019-01-28 18:52:33 +0000 |
commit | c6d151d2ff929f4b18c6c401d86d284788b4564f (patch) | |
tree | a5c1a467eb1c608407e2566ee9862a6939867453 /project2/common/variableConvert.cpp | |
parent | C++17 JSON (diff) | |
download | project2-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.cpp | 4 |
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); |